mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
* Add omarchy CLI * Remove outdated or internal * Add bash completions for command * Add omarchy command documentation * Add missing docs * Correct to what's now right * Fix tests --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
24 lines
555 B
Bash
Executable File
24 lines
555 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Open Zoom web meetings from browser protocol links
|
|
# omarchy:args=[url]
|
|
|
|
url="$1"
|
|
web_url="https://app.zoom.us/wc/home"
|
|
|
|
if [[ $url =~ ^zoom(mtg|us):// ]]; then
|
|
confno=$(echo "$url" | sed -n 's/.*[?&]confno=\([^&]*\).*/\1/p')
|
|
|
|
if [[ -n $confno ]]; then
|
|
pwd=$(echo "$url" | sed -n 's/.*[?&]pwd=\([^&]*\).*/\1/p')
|
|
|
|
if [[ -n $pwd ]]; then
|
|
web_url="https://app.zoom.us/wc/join/$confno?pwd=$pwd"
|
|
else
|
|
web_url="https://app.zoom.us/wc/join/$confno"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
exec omarchy-launch-webapp "$web_url"
|