mirror of
https://github.com/aclist/dztui.git
synced 2026-08-31 12:16:55 +02:00
Compare commits
1 Commits
c283e741da
...
0f72a29620
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f72a29620 |
23
dzgui.sh
23
dzgui.sh
@ -86,15 +86,14 @@ logger(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
setup_dirs(){
|
setup_dirs(){
|
||||||
directories=()
|
directories="$state_path "
|
||||||
directories+=("$state_path")
|
directories+="$cache_path "
|
||||||
directories+=("$cache_path")
|
directories+="$share_path "
|
||||||
directories+=("$share_path")
|
directories+="$helpers_path "
|
||||||
directories+=("$helpers_path")
|
directories+="$freedesktop_path "
|
||||||
directories+=("$freedesktop_path")
|
directories+="$config_path "
|
||||||
directories+=("$config_path")
|
directories+="$log_path "
|
||||||
directories+=("$log_path")
|
for dir in $directories; do
|
||||||
for dir in "${directories[@]}"; do
|
|
||||||
mkdir -p "$dir"
|
mkdir -p "$dir"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
@ -1094,8 +1093,7 @@ uninstall(){
|
|||||||
echo "Uninstall routine complete"
|
echo "Uninstall routine complete"
|
||||||
}
|
}
|
||||||
|
|
||||||
usage(){
|
read -r -d '' helptext <<- EOM
|
||||||
cat <<- EOM
|
|
||||||
DZGUI - Free and Open Source DayZ launcher
|
DZGUI - Free and Open Source DayZ launcher
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@ -1117,7 +1115,6 @@ Options:
|
|||||||
-h, --help:
|
-h, --help:
|
||||||
Prints this message
|
Prints this message
|
||||||
EOM
|
EOM
|
||||||
}
|
|
||||||
|
|
||||||
main(){
|
main(){
|
||||||
# setup zenity environment
|
# setup zenity environment
|
||||||
@ -1139,7 +1136,7 @@ main(){
|
|||||||
# shift
|
# shift
|
||||||
;;
|
;;
|
||||||
"--help" | "-h")
|
"--help" | "-h")
|
||||||
usage
|
echo "$helptext"
|
||||||
exit 0
|
exit 0
|
||||||
# shift
|
# shift
|
||||||
;;
|
;;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user