Check $deploy_version not $2

This commit is contained in:
Dennis ten Hoove 2024-01-04 22:10:23 +01:00
parent e7d45115ea
commit 1e9c9ea4dd

2
arkdep
View file

@ -351,7 +351,7 @@ deploy () {
fi
# If cache requested version may not be latest
if [[ $1 == 'cache' ]] && [[ $2 == 'latest' ]]; then
if [[ $1 == 'cache' ]] && [[ $deploy_version == 'latest' ]]; then
cleanup_and_quit '"latest" and undefined are not a valid version definitions for a cache source'
fi