diff --git a/share/fsl/sbin/createFSLWrapper b/share/fsl/sbin/createFSLWrapper index 737a22016f2b66dfe9dd45f1246fd3c957162103..105efc8c4fd3955f6538f6276a57623575da9719 100755 --- a/share/fsl/sbin/createFSLWrapper +++ b/share/fsl/sbin/createFSLWrapper @@ -109,7 +109,7 @@ for script in $targets; do fi # Preserve file permissions - if [[ "$OSTYPE" == "darwin"* ]]: then + if [[ "$OSTYPE" == "darwin"* ]]; then perms=$(stat -f "%A" "$sourceScript") chmod ${perms} "$targetScript" else