diff options
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 - |
