1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Simplify usage string

This commit is contained in:
billz 2019-11-11 19:18:20 +00:00
parent 24b669b157
commit d83dab1937

View File

@ -16,11 +16,14 @@
repo="billz/raspap-webgui" repo="billz/raspap-webgui"
branch="master" branch="master"
USAGE=$'Usage: raspbian.sh [OPTION] \n\n' usage=$(cat << EOF
USAGE+=$'-y, --yes, --assume-yes\n\tAssumes "yes" as an answer to all prompts\n' Usage: raspbian.sh [OPTION]\n
USAGE+=$'-c, --cert, --certficate\n\tInstalls an SSL certificate for lighttpd\n' -y, --yes, --assume-yes\n\tAssumes "yes" as an answer to all prompts
USAGE+=$'-r, --repo, --repository\n\tOverrides the default GitHub repo (billz/raspap-webgui)\n' -c, --cert, --certficate\n\tInstalls an SSL certificate for lighttpd
USAGE+=$'-b, --branch\n\tOverrides the default git branch (master)\n' -r, --repo, --repository\n\tOverrides the default GitHub repo (billz/raspap-webgui)
-b, --branch\n\tOverrides the default git branch (master)\n
EOF
)
assume_yes=0 assume_yes=0
while :; do while :; do
@ -41,7 +44,7 @@ while :; do
;; ;;
-*|--*) -*|--*)
echo "Unknown option: $1" echo "Unknown option: $1"
echo "$USAGE" printf "$usage"
exit 1 exit 1
;; ;;
*) *)