diff --git a/LCS/Tools/src/lofarcvsmv b/LCS/Tools/src/lofarcvsmv index 2569be0c5966b8fa0fab72ee0d546292ccfc206a..49a4b30c4573bcc132101951fa522717603d1767 100755 --- a/LCS/Tools/src/lofarcvsmv +++ b/LCS/Tools/src/lofarcvsmv @@ -209,7 +209,7 @@ # Recursive. # Check that the destination is not a subdirectory of the source. - rest=`echo $DESTINATION | sed "s%$SOURCE%%"` + rest=`echo $DESTINATION | sed "s%$SOURCE/%%"` if [ "$rest" != "$DESTINATION" ]; then echo "destination is a subdirectory of the source directory" 1>&2 echo -n "Do you really want this? (y,n) [n]: " 1>&2