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