From a2e6c142769658ae48458c3b4c5dfd9cd00be87a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 1 Jul 2017 18:13:20 +1200 Subject: Work around no options terminal in POSIX chmod(1) --- bin/mex.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3