:78 Function create_function() is deprecated [8192]

considering the case of multiple arguments in the location arg. of the monitoring tool

Marcelo Ponce [2019-08-24 20:39:45]
considering the case of multiple arguments in the location arg. of the monitoring tool
Filename
tools/racs_monitor.sh
diff --git a/tools/racs_monitor.sh b/tools/racs_monitor.sh
index cc14385..adadb31 100755
--- a/tools/racs_monitor.sh
+++ b/tools/racs_monitor.sh
@@ -33,8 +33,9 @@ RACSdir="ORF_RACS-"
 location="${ramdisk}/${USER}/${RACSdir}*"

 # check whether there is an instance of ORF in the 'location'...
-[ -d $location ] || warning_Msg="WARNING: workspace <<${location}>> not found! \n  If you are not using the standard (default) location, recall to specify it as an argument when executing this tool."
-
+for i in $location; do
+	[ -d "$i" ] || warning_Msg="WARNING: workspace <<${location}>> not found! \n  If you are not using the standard (default) location, recall to specify it as an argument when executing this tool."
+done

 ### Commands ##
 ## memory and space utilization ##
ViewGit