From 32d685ca8051e8993db98ad6b530c0bd7f07595e Mon Sep 17 00:00:00 2001 From: Lenny Chen <55669665+lennessyy@users.noreply.github.com> Date: Mon, 13 Nov 2023 11:37:35 -0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Karl Cardenas --- edge/vmware/clone_vm_template/delete-packer-cache.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/edge/vmware/clone_vm_template/delete-packer-cache.sh b/edge/vmware/clone_vm_template/delete-packer-cache.sh index d970e6b..e1ce7bc 100644 --- a/edge/vmware/clone_vm_template/delete-packer-cache.sh +++ b/edge/vmware/clone_vm_template/delete-packer-cache.sh @@ -1,4 +1,4 @@ -#!/bin/bas +#!/bin/bash source /edge/vmware/clone_vm_template/setenv.sh @@ -13,8 +13,10 @@ else RESULT=$? if [ $RESULT -eq 0 ]; then echo "Deleted previous packer cache." + exit 0 else echo "Failed to delete packer cache." + exit 1 fi fi