From 2e09f922e0834d13054cbef9a81a07e91d4b0e52 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 13 May 2023 23:11:32 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 3b49f92a..ff45820e 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -113,6 +113,8 @@ BACKUP(){ mkdir -p ${BACKUP_FOLDER} fi for item in "${!BACKUP_ITEMS[@]}"; do + test=${BACKUP_ITEMS[$item]} + echo "here: ${#BACKUP_ITEMS[$item]} - test: ${#test}" c=0; spc=''; spc1=`expr 30 - ${#BACKUP_ITEMS[$item]}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en "Backing up '${item}'${spc}" if [ -d ${BACKUP_ITEMS[$item]} ]; then