]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
change restore variables compact
authorBastian Dehn <hhaalo@arcor.de>
Sun, 25 May 2025 05:01:59 +0000 (07:01 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 25 May 2025 05:01:59 +0000 (07:01 +0200)
restore

diff --git a/restore b/restore
index e13baec0466000bbd5150ad3b3889373cd981731..b5a6503dad19b0232dcb6e4e34ef88c037525539 100755 (executable)
--- a/restore
+++ b/restore
@@ -115,22 +115,11 @@ main()
 
        while getopts "d:n:r:p:h" optname; do
                case "$optname" in
-               "d")
-                       date="$OPTARG"
-                       ;;
-               "n")
-                       number="$OPTARG"
-                       ;;
-               "r")
-                       machine="$OPTARG"
-                       ;;
-               "p")
-                       path="$OPTARG"
-                       ;;
-               "h")
-                       useage
-                       exit 0
-                       ;;
+               "d") date="$OPTARG" ;;
+               "n") number="$OPTARG" ;;
+               "r") machine="$OPTARG" ;;
+               "p") path="$OPTARG" ;;
+               "h") useage && return 0 ;;
                esac
        done
 
@@ -159,4 +148,3 @@ main()
 }
 
 main $*
-exit 0