From f835f600a6f59345ccbcef6dcb7cb8e33498ca18 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 25 May 2025 07:01:59 +0200 Subject: [PATCH] change restore variables compact --- restore | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) 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 -- 2.47.3