summaryrefslogtreecommitdiff
path: root/d-backup
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2022-01-30 21:03:14 +0500
committerAnton Bobov <anton@bobov.name>2022-01-30 21:03:14 +0500
commitb25a5b794be7093dbcd556fcab2ebc50bb33e8b2 (patch)
tree282659aa4c647c87e004273efd4d02599afbcec2 /d-backup
parentc83690911af9326784d81e49e2b55de9688c1e9b (diff)
Updates.
Diffstat (limited to 'd-backup')
-rwxr-xr-xd-backup7
1 files changed, 3 insertions, 4 deletions
diff --git a/d-backup b/d-backup
index fd94d54..14906d4 100755
--- a/d-backup
+++ b/d-backup
@@ -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
-