fix: encapsulate usage command

This commit is contained in:
aclist committed 2025-10-23 13:38:56 +09:00
1 parent 1dfe9cd9df
commit 5a54d43601
1 file changed
+4 -1
+4 -1
View File
@@ -1093,6 +1093,7 @@ uninstall(){
echo "Uninstall routine complete" echo "Uninstall routine complete"
} }
usage(){
read -r -d '' helptext <<- EOM read -r -d '' helptext <<- EOM
DZGUI - Free and Open Source DayZ launcher DZGUI - Free and Open Source DayZ launcher
@@ -1115,6 +1116,8 @@ Options:
-h, --help: -h, --help:
Prints this message Prints this message
EOM EOM
echo "$helptext"
}
main(){ main(){
# setup zenity environment # setup zenity environment
@@ -1136,7 +1139,7 @@ main(){
# shift # shift
;; ;;
"--help" | "-h") "--help" | "-h")
echo "$helptext" usage
exit 0 exit 0
# shift # shift
;; ;;