summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authord. johnson <fenris02@fedoraproject.org>2016-04-10 01:09:17 -0500
committerd. johnson <fenris02@fedoraproject.org>2016-04-10 01:09:17 -0500
commitf91718fda238cdffd199bb179e0a1672eaa8b9b1 (patch)
tree99adb86b67a9b8d4d380f085c12ec999cd0c9fa1
parentf1ac7a0b2388909a13b651f8d7c3228645b4ea22 (diff)
downloadcleanup-f91718fda238cdffd199bb179e0a1672eaa8b9b1.tar.gz
cleanup-f91718fda238cdffd199bb179e0a1672eaa8b9b1.tar.xz
cleanup-f91718fda238cdffd199bb179e0a1672eaa8b9b1.zip
use more quotes
-rwxr-xr-xduplicity-backups.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/duplicity-backups.sh b/duplicity-backups.sh
index 494aa3a..ba8cd06 100755
--- a/duplicity-backups.sh
+++ b/duplicity-backups.sh
@@ -45,13 +45,13 @@ fi
if [ ! -e /root/.ssh/id_rsa ] && [ ! -e /root/.ssh/id_ed25519 ]; then
/bin/cat - <<EOT
Create an SSH key first. Two example methods:
- /usr/bin/ssh-keygen -t ed25519 -N '' -C "$USER@$HOSTNAME" -f $HOME/.ssh/id_ed25519
+ /usr/bin/ssh-keygen -t ed25519 -N '' -C "$USER@$HOSTNAME" -f "$HOME/.ssh/id_ed25519"
/usr/bin/ssh-copy-id -i ~/.ssh/id_ed25519 $BACKUP_URL
- /usr/bin/ssh-keygen -t rsa -b 4096 -N '' -C "$USER@$HOSTNAME" -f $HOME/.ssh/id_rsa
+ /usr/bin/ssh-keygen -t rsa -b 4096 -N '' -C "$USER@$HOSTNAME" -f "$HOME/.ssh/id_ed25519"
/usr/bin/ssh-copy-id -i ~/.ssh/id_rsa $BACKUP_URL
EOT
- /usr/bin/ssh-keygen -t ed25519 -N '' -C "$USER@$HOSTNAME" -f $HOME/.ssh/id_ed25519
+ /usr/bin/ssh-keygen -t ed25519 -N '' -C "$USER@$HOSTNAME" -f "$HOME/.ssh/id_ed25519"
exit 1
fi