diff --git a/src/mad/sh/scripts_common.sh b/src/mad/sh/scripts_common.sh index 6aa3d04e56..897073362d 100644 --- a/src/mad/sh/scripts_common.sh +++ b/src/mad/sh/scripts_common.sh @@ -443,7 +443,7 @@ if [ ! -d $2 ]; then mkdir -p $2 if [ "monitor" = "$3" ]; then - touch "$2/.monitor" + touch "\$(dirname $2)/.monitor" fi fi EOF`