diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-01-11 04:25:47 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-01-11 04:25:47 +0300 |
commit | f952b86bbb84b15e77b3a2a7769d56eeda97a650 (patch) | |
tree | afb50e219ba1d01a586c29a40144bfc8699ca096 | |
parent | b9a43f2309a6a867e3366dd1cf26702dfd87c661 (diff) |
ota-upload: add --help
-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 |