From 963e165c3176b250eac366f1b402c8e9a6d21524 Mon Sep 17 00:00:00 2001 From: Jason Lantz Date: Sat, 9 Sep 2023 13:53:38 -0500 Subject: [PATCH] Update devhub.sh --- devhub.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devhub.sh b/devhub.sh index 5ed55a2..592586b 100755 --- a/devhub.sh +++ b/devhub.sh @@ -32,7 +32,7 @@ if [ -z "$DEV_HUB_AUTH_URL" ]; then --alias DevHub \ --set-default-dev-hub - rm /tmp/dev_hub.key + [[ -f /tmp/dev_hub.key ]] && rm /tmp/dev_hub.key else # Authenticate using Auth URL @@ -44,7 +44,7 @@ else # Authenticate the DevHub sfdx org login sfdx-url -f /tmp/dev_hub_auth_url -a DevHub -d - rm /tmp/dev_hub_auth_url + [[ -f /tmp/dev_hub_auth_url ]] && rm /tmp/dev_hub_auth_url fi if [ -z "$PACKAGING_ORG_AUTH_URL" ]; then @@ -62,7 +62,7 @@ else # Import the org to CumulusCI cci org import packaging packaging - rm /tmp/packaging_org_auth_url + [[ -f /tmp/packaging_org_auth_url ]] && rm /tmp/packaging_org_auth_url fi if [ "`whoami`" == "d2x" ]; then