Skip to content

Commit

Permalink
Update backup-nextcloud-snap.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lindhe committed Jul 31, 2023
1 parent c5d5d5b commit 12c977e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions backup/nextcloud-snap/backup-nextcloud-snap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@

set -euo pipefail

missing_dependencies=false
readonly dependencies=(
nextcloud.export
)
for dep in "${dependencies[@]}"; do
if ! command -v "${dep}" &> /dev/null; then
stderr "❌ ERROR: Missing dependency ${dep}"
missing_dependencies=true
fi
done
if ${missing_dependencies}; then
fail 'Please install the missing dependencies!'
fi

if [[ -z ${VERBOSE+x} ]]; then
VERBOSE=0
fi
Expand Down

0 comments on commit 12c977e

Please sign in to comment.