summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fb.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/fb.in b/fb.in
index 3287deb..561a2df 100644
--- a/fb.in
+++ b/fb.in
@@ -180,6 +180,11 @@ usage: [cat |] `basename "$0"` [switches] [options] [<file(s)|ID(s)|folder(s)>]
!
}
+if ! type getopts >/dev/null 2>&1; then
+ echo "Error: getopts is not supported by your shell" >&2
+ exit 1
+fi
+
while getopts "e:gdhHtcv" OPTION; do
case $OPTION in
e) EXTENSION="$OPTARG";;