summaryrefslogtreecommitdiff
path: root/kyanite.sh
diff options
context:
space:
mode:
authorDerek Stevens <nilix@nilfm.cc>2021-04-12 23:49:50 -0400
committerDerek Stevens <nilix@nilfm.cc>2021-04-12 23:49:50 -0400
commit3d3e74144663a4e32e0196baafc831834817d867 (patch)
tree347236aa9d166c2ef36412754a0f3b9df9172fb8 /kyanite.sh
parentcfda9f62fb8d7238169ee860991ecec76a1a443e (diff)
fix remote host and typo in help
Diffstat (limited to 'kyanite.sh')
-rwxr-xr-xkyanite.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/kyanite.sh b/kyanite.sh
index bdd0644..f3bd043 100755
--- a/kyanite.sh
+++ b/kyanite.sh
@@ -16,7 +16,7 @@ helpme() {
echo " DEST:"
echo " Relative or absolute path for the destination to backup or restore to."
echo " When backing up, this is path to the root of your kyanite backups."
- echo " When retoring, this is the path to your restore destination."
+ echo " When restoring, this is the path to your restore destination."
echo " OPTIONS:"
echo " anything provided after DEST is passed as additional options to rsync,"
echo " e.g. '--exclude .cache'"
@@ -41,7 +41,7 @@ srcDir=$1;
shift;
destDir=$1
-remoteHost=$(echo $destDir | awk -F : '{ print $1 }' | awk -F @ '{ print $2 }');
+remoteHost=$(echo $srcDir | awk -F : '{ print $1 }' | awk -F @ '{ print $2 }');
if [ ! -z "${remoteHost}" ]; then
host=${remoteHost};
@@ -67,4 +67,4 @@ case $mode in
*)
helpme
;;
-esac \ No newline at end of file
+esac