Do not run update.sh if ARKDEP_ROOT is defined

This commit is contained in:
Dennis ten Hoove 2024-06-21 10:41:38 +02:00
parent e9c4cb4d7b
commit 37db66d05a
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 trap 'echo "User interupt received, canceling cleanup step"; exit 4' INT TERM
# Check if there is an update script available # 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; 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' printf '\e[1;34m-->\e[0m\e[1m Running update script\e[0m\n'
# Run the migration script if provided # Run the migration script if provided
(source $arkdep_dir/cache/${data[0]}-update.sh) (source $arkdep_dir/cache/${data[0]}-update.sh)