From b6bf88b7d915ce04769e30dada0ea213ffbc26f0 Mon Sep 17 00:00:00 2001 From: tonytan4ever Date: Thu, 17 Jan 2019 18:14:31 -0500 Subject: [PATCH] Ignore deactivate not existing error Change-Id: Iba7c20e06061e8377815cff6e5c04704dd437c85 --- bootstrap-embedded-ansible/bootstrap-embedded-ansible.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap-embedded-ansible/bootstrap-embedded-ansible.sh b/bootstrap-embedded-ansible/bootstrap-embedded-ansible.sh index 841f1138..e3dd74c1 100755 --- a/bootstrap-embedded-ansible/bootstrap-embedded-ansible.sh +++ b/bootstrap-embedded-ansible/bootstrap-embedded-ansible.sh @@ -14,7 +14,7 @@ # limitations under the License. # Check if embedded ansible is already activated. If it is active, deactivate it. -alias deactivate &> /dev/null && deactivate +(alias deactivate &> /dev/null && deactivate) || true export OPTS=() export CLONE_DIR="$(dirname $(readlink -f ${BASH_SOURCE[0]}))"