And not or

This commit is contained in:
Dennis ten Hoove 2024-06-21 14:35:00 +02:00
parent 37db66d05a
commit ad2abee558
No known key found for this signature in database
GPG key ID: 2BA91DC2563B83D1

2
arkdep
View file

@ -863,7 +863,7 @@ deploy () {
trap 'echo "User interupt received, canceling cleanup step"; exit 4' INT TERM
# Check if there is an update script available
if tar -xf $arkdep_dir/cache/${data[0]}.tar.${data[1]} -C $arkdep_dir/cache/ ./${data[0]}-update.sh 2> /dev/null || [[ ! -n $ARKDEP_ROOT ]]; then
if tar -xf $arkdep_dir/cache/${data[0]}.tar.${data[1]} -C $arkdep_dir/cache/ ./${data[0]}-update.sh 2> /dev/null && [[ ! -n $ARKDEP_ROOT ]]; then
printf '\e[1;34m-->\e[0m\e[1m Running update script\e[0m\n'
# Run the migration script if provided
(source $arkdep_dir/cache/${data[0]}-update.sh)