commit | 8dadc740b69af96ffb86c4b121f86f6f1598b5ef | [log] [tgz] |
---|---|---|
author | Gavin Howard <yzena.tech@gmail.com> | Fri Oct 12 17:56:05 2018 -0600 |
committer | Gavin Howard <yzena.tech@gmail.com> | Fri Oct 12 17:56:05 2018 -0600 |
tree | 2473010b3b7c2598f568688cd8f918d4c38dabe4 | |
parent | 3b756a35db937004b37a36c817d77e5e2804489f [diff] [blame] |
Another attempt at making mingw work
diff --git a/link.sh b/link.sh index ead078f..9ed3895 100755 --- a/link.sh +++ b/link.sh
@@ -34,15 +34,14 @@ if [ ! -L "$exe" ]; then base=$(basename "$exe") + ext="${base##*.}" - if [ "${base##*.}" != "$base" ]; then - base=${base%.*} - name=${$exe/$base/$link} + if [ "$ext" != "$base" ]; then + name="$link.$ext" else name="$link" fi - ln -s "$exe" "./$name" exit 0