diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-07-01 18:13:20 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-07-01 18:13:20 +1200 |
commit | a2e6c142769658ae48458c3b4c5dfd9cd00be87a (patch) | |
tree | ec86599da7841e272b531d7cf16fb46de9792ffd /bin/mex.sh | |
parent | Solve Pandoc issue by not building page at all (diff) | |
download | dotfiles-a2e6c142769658ae48458c3b4c5dfd9cd00be87a.tar.gz dotfiles-a2e6c142769658ae48458c3b4c5dfd9cd00be87a.zip |
Work around no options terminal in POSIX chmod(1)
Diffstat (limited to 'bin/mex.sh')
-rw-r--r-- | bin/mex.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |