From 468eadd51dc55848afe40d0fc9773f33d448d89c Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Thu, 28 Apr 2016 12:30:17 +0200 Subject: [PATCH] feature #4139: bug in ssh_male_path --- src/mad/sh/scripts_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`