Skip to content

Commit

Permalink
chore: redirect successul standard output of first command to null
Browse files Browse the repository at this point in the history
  • Loading branch information
lennessyy committed Nov 21, 2023
1 parent d2f7f6c commit 5f19634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edge/vmware/clone_vm_template/delete-packer-cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f19634

Please sign in to comment.