Check $deploy_version not $2
This commit is contained in:
parent
e7d45115ea
commit
1e9c9ea4dd
1 changed files with 1 additions and 1 deletions
2
arkdep
2
arkdep
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue