diff options
author | EuAndreh <eu@euandre.org> | 2019-01-03 06:12:39 -0200 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-01-03 06:42:41 -0200 |
commit | b679e7d91f7af2d97bead966a17b715cdb020b1a (patch) | |
tree | 71926893088a93513971d950d5a19b012722fedf /scripts/backup.sh | |
parent | Add custom nu gitconfig options in nugitconfig.ini file. (diff) | |
download | dotfiles-b679e7d91f7af2d97bead966a17b715cdb020b1a.tar.gz dotfiles-b679e7d91f7af2d97bead966a17b715cdb020b1a.tar.xz |
Fix shellcheck ofsenses on bash scripts.
Diffstat (limited to 'scripts/backup.sh')
-rwxr-xr-x | scripts/backup.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/backup.sh b/scripts/backup.sh index a33a630..6a4de25 100755 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -6,12 +6,12 @@ # if [ ! -d ~/UTCLOUD/ ]; then - red "~/UTCLOUD not attached. Backup not started." + red "$HOME/UTCLOUD not attached. Backup not started." exit 1 fi if [ ! -d ~/borgbackup/ ]; then - yellow "~/borgbackup/ repository doesn't exist. Downloading latest version from ~/UTCLOUD/borg/borgbackup/ into ~/borgbackup/" + yellow "$HOME/borgbackup/ repository doesn't exist. Downloading latest version from ~/UTCLOUD/borg/borgbackup/ into ~/borgbackup/" # The initial borg repo was created with: # $ borg init --append-only --encryption=keyfile ~/borgbackup # See also: https://borgbackup.readthedocs.io/en/stable/usage/notes.html#append-only-mode @@ -46,7 +46,7 @@ green "Done" # yellow "Backing up git repos" -pushd ~/ +pushd ~/ || exit 1 mr -s master mr -s status @@ -54,13 +54,13 @@ mr -s -j16 update mr -s hd mr -s -j4 rsyncnet -popd +popd || exit 1 yellow "Syncing annex" -pushd ~/annex/ +pushd ~/annex/ || exit 1 git annex sync -popd +popd || exit 1 green "Done" |