use test in both cases

This commit is contained in:
Michael Hobbs committed 2015-04-21 14:33:28 -07:00
1 parent d44788721f
commit 9a704bc656
1 file changed
+1 -2
+1 -2
View File
@@ -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