From 930c29f4a24accd43765d38f5f23ea195e7b71e4 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Fri, 26 Nov 2021 22:24:55 +0100 Subject: [PATCH] fix: switch order of command --- cli/app/remove.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/app/remove.go b/cli/app/remove.go index ab515345..6533a13b 100644 --- a/cli/app/remove.go +++ b/cli/app/remove.go @@ -59,8 +59,8 @@ var appRemoveCommand = &cli.Command{ if err != nil { logrus.Fatal(err) } - if statuses[app.Name]["status"] == "deployed" { - logrus.Fatalf("'%s' is still deployed. Run \"abra app %s undeploy\" or pass --force", app.Name, app.Name) + if isDeployed { + logrus.Fatalf("'%s' is still deployed. Run \"abra app undeploy %s \" or pass --force", app.Name, app.Name) } }