diff options
-rwxr-xr-x | ota-upload.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ota-upload.sh b/ota-upload.sh index cc47fdb..accfc23 100755 --- a/ota-upload.sh +++ b/ota-upload.sh @@ -34,6 +34,7 @@ usage() { Options: --root DIR LineageOS root + -h, --help show this help _EOF exit 1 @@ -42,8 +43,12 @@ usage() { ROOT= DEVICE= +[ -z "$1" ] && usage while [[ $# -gt 0 ]]; do case $1 in + -h|--help) + usage + ;; --root) ROOT="$2" shift |