From 5f196346638b2b8bfcb35249b739e0eb86a4dc0b Mon Sep 17 00:00:00 2001 From: Lenny Chen Date: Tue, 21 Nov 2023 11:39:26 -0800 Subject: [PATCH] chore: redirect successul standard output of first command to null --- edge/vmware/clone_vm_template/delete-packer-cache.sh | 2 +- 1 file changed, 1 insertion(+), 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 875b959..8c491f8 100644 --- a/edge/vmware/clone_vm_template/delete-packer-cache.sh +++ b/edge/vmware/clone_vm_template/delete-packer-cache.sh @@ -3,7 +3,7 @@ source /edge/vmware/clone_vm_template/setenv.sh # First, list directories to confirm access and credentials -govc datastore.ls -ds=$vcenter_datastore +govc datastore.ls -ds=$vcenter_datastore > /dev/null if [ $? -ne 0 ]; then echo "Error accessing datastore." exit 1