From: Bastian Dehn Date: Sun, 25 May 2025 05:01:59 +0000 (+0200) Subject: change restore variables compact X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=f835f600a6f59345ccbcef6dcb7cb8e33498ca18;p=simple-backup.git change restore variables compact --- diff --git a/restore b/restore index e13baec..b5a6503 100755 --- 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