diff options
| author | Anton Bobov <anton@bobov.name> | 2022-01-30 21:03:14 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2022-01-30 21:03:14 +0500 |
| commit | b25a5b794be7093dbcd556fcab2ebc50bb33e8b2 (patch) | |
| tree | 282659aa4c647c87e004273efd4d02599afbcec2 /d-backup | |
| parent | c83690911af9326784d81e49e2b55de9688c1e9b (diff) | |
Updates.
Diffstat (limited to 'd-backup')
| -rwxr-xr-x | d-backup | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -7,7 +7,7 @@ # TARGET="sftp://server/path" # ---------------- 8< -------------------- -if [ ! $(whoami) = root ] ; then +if [ ! "$(whoami)" = root ] ; then echo "This script must be run by the user: root" exit 1 fi @@ -75,12 +75,12 @@ while (( "$#" )) ; do ;; list) shift - list $* + list "$@" exit 0 ;; restore) shift - restore $* + restore "$@" exit 0 ;; *) @@ -89,4 +89,3 @@ while (( "$#" )) ; do esac shift done - |
