mirror of
https://github.com/osnr/TabFS.git
synced 2024-04-25 10:50:30 +02:00
check for 0 arguments in install.sh.
This commit is contained in:
parent
52484f6e0a
commit
c4245fdf7b
|
@ -1,8 +1,9 @@
|
|||
#!/bin/bash -eux
|
||||
|
||||
if [[ ! ( ( "$1" == "firefox" && "$#" -eq 1 ) ||
|
||||
( "$1" == "chrome" && "$#" -eq 2 && ${#2} -eq 32 ) ||
|
||||
( "$1" == "chromium" && "$#" -eq 2 && ${#2} -eq 32 ) ) ]]; then
|
||||
if [[ "$#" -lt 1 || (
|
||||
! ( ( "$1" == "firefox" && "$#" -eq 1 ) ||
|
||||
( "$1" == "chrome" && "$#" -eq 2 && ${#2} -eq 32 ) ||
|
||||
( "$1" == "chromium" && "$#" -eq 2 && ${#2} -eq 32 ) ) ) ]]; then
|
||||
echo "Usage: $0 <chrome EXTENSION_ID | chromium EXTENSION_ID | firefox>"
|
||||
exit 2
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue