mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-09 06:36:49 +02:00
Fix to error out script on invalid option.
This commit is contained in:
@@ -9,6 +9,7 @@ for opt in "$@" ; do
|
|||||||
-f ) FORCED=$opt ;;
|
-f ) FORCED=$opt ;;
|
||||||
-i ) IMGGEN=$opt ;;
|
-i ) IMGGEN=$opt ;;
|
||||||
-d ) DISPMD=$opt ;;
|
-d ) DISPMD=$opt ;;
|
||||||
|
-* ) echo "Unknown option $opt"; exit -1 ;;
|
||||||
* ) FILES="$FILES $opt" ;;
|
* ) FILES="$FILES $opt" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user