Skip to content

Commit

Permalink
Fix backup script
Browse files Browse the repository at this point in the history
  • Loading branch information
hdgarrood committed Sep 26, 2020
1 parent a825391 commit 5983d0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function die() {
exit 1
}

for required_cmd in "rsync git"; do
for required_cmd in rsync git; do
which "$required_cmd" >/dev/null ||
die "The program '$required_cmd' is required but could not be found."
done
Expand All @@ -26,8 +26,8 @@ if [ $# -ne 2 ]; then
die "Usage: $0 SOURCE_DIR DEST_DIR"
fi

$SOURCE_DIR="$1"
$DEST_DIR="$2"
SOURCE_DIR="$1"
DEST_DIR="$2"

rsync --archive --verbose --delete "$SOURCE_DIR" "$DEST_DIR"
pushd "$DEST_DIR"
Expand Down

0 comments on commit 5983d0d

Please sign in to comment.