Fix typo that occurred when fixing the capitalization of zoom.
This commit is contained in:
2020-06-24 17:31:53 +00:00
committed by GitHub
parent e7427ba925
commit 1a8a41f867

View File

@@ -17,7 +17,7 @@ command -v xclip >/dev/null 2>&1 || return 1
# If no argument is given, set the clipboard as argument
set "$(xclip -selection c -o)"
# Check for right format
echo "$1" | grep -Eq "^https://tu-berlin.Zoom.us/(j|wc/join)/[0-9]*\?pwd=.+" || return 1
echo "$1" | grep -Eq "^https://tu-berlin.zoom.us/(j|wc/join)/[0-9]*\?pwd=.+" || return 1
# Delete password part and convert /j/ to /wc/join/
link="$(echo "${1%pwd=*}" | sed 's_/j/_/wc/join/_')"