Skip to content

Commit

Permalink
Another attempt at making mingw work
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavin Howard committed Oct 12, 2018
1 parent 3b756a3 commit 8dadc74
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions link.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@ for exe in ./*; do
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
Expand Down

0 comments on commit 8dadc74

Please sign in to comment.