diff --git a/init.sh b/init.sh index 64c6b8d..8fff019 100755 --- a/init.sh +++ b/init.sh @@ -11,4 +11,4 @@ fi if [[ ! -f "${scriptPath}/key" ]]; then resticprofile generate --random-key > "${scriptPath}/key" fi -chmod go-rwx "${scriptPath}/key "${scriptPath}/profiles.toml" "${scriptPath}/excludes" +chmod go-rwx "${scriptPath}/key" "${scriptPath}/profiles.toml" "${scriptPath}/excludes" diff --git a/install.sh b/install.sh index 32fd8b0..5cb8b82 100755 --- a/install.sh +++ b/install.sh @@ -3,8 +3,8 @@ resticVersion="0.16.2" resticprofileVersion="0.24.0" -mkdir /tmp/restic-install -pushd /tmp/restic-install &>/dev/null +mkdir /tmp/restic-install || exit 1 +pushd /tmp/restic-install &>/dev/null || exit 1 wget "https://github.com/restic/restic/releases/download/v${resticVersion}/restic_${resticVersion}_linux_amd64.bz2" bunzip2 "restic_${resticVersion}_linux_amd64.bz2" wget "https://github.com/creativeprojects/resticprofile/releases/download/v${resticprofileVersion}/resticprofile_${resticprofileVersion}_linux_amd64.tar.gz"