aboutsummaryrefslogtreecommitdiff
path: root/bin/mex.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mex.sh')
-rw-r--r--bin/mex.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/mex.sh b/bin/mex.sh
index 0b3d6c7e..cf4e07e7 100644
--- a/bin/mex.sh
+++ b/bin/mex.sh
@@ -37,7 +37,11 @@ for name ; do
# If the "found" variable was defined to something, we'll try to change its
# permissions
if [ -n "$found" ] ; then
- chmod +x -- "$found" || ex=1
+ case $found in
+ /*) ;;
+ *) found=$PWD/$found ;;
+ esac
+ chmod +x "$found" || ex=1
# If not, we'll report that we couldn't find it, and flag an error for the
# exit status