use test in both cases
This commit is contained in:
1 parent
d44788721f
commit
9a704bc656
1 file changed
+1
-2
@@ -169,8 +169,7 @@ copy_from_image() {
|
|||||||
|
|
||||||
is_deployed() {
|
is_deployed() {
|
||||||
APP="$1"
|
APP="$1"
|
||||||
verify_app_name $APP
|
if [[ -f "$DOKKU_ROOT/$APP/CONTAINER" ]] || [[ $(ls $DOKKU_ROOT/$APP/CONTAINER.* &> /dev/null; echo $?) -eq 0 ]];then
|
||||||
if [[ -f $DOKKU_ROOT/$APP/CONTAINER ]] || ls $DOKKU_ROOT/$APP/CONTAINER.* &> /dev/null;then
|
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in new issue
Block a user