Update powerwall.sh

This commit is contained in:
2023-10-22 08:26:17 -05:00
parent 120262baec
commit 56d76c2df2

View File

@@ -901,9 +901,9 @@ GET_SNAPSHOTS(){
DIVIDER . lightGreen 70
echo -en "${idsCL[LighGreen]}Looking for snapshots...${idsCL[Default]}"
snapshots=`${PW_FOLDER}/esxi-scripts/get-snapshots.ps1 ${ESXIHOST}`
if [ "${result}" != "" ]; then
if [ "${snapshots}" != "" ]; then
echo -en "\033[2K\033[1A"
echo ${result}
echo ${snapshots}
# for snapshot in $(echo ${snapshots} | jq -r '.[] | @base64'); do
# vm=`echo ${snapshot} | base64 --decode | jq -r '.VM'`
# name=`echo ${snapshot} | base64 --decode | jq -r '.Name'`