avoid wrapping symlinks

This commit is contained in:
Joey Hess 2018-04-16 18:31:10 -04:00
parent 0a74404c97
commit 4d75c3d48e
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -25,7 +25,7 @@ wrap () {
# location to toolchain as installed by ghc-android
androidtoolchain="$HOME/.ghc/$(cat $top/abiversion)/bin"
for f in $(find "$androidtoolchain" -maxdepth 1 -not -type d -printf '%f\n' | grep -v \.orig); do
for f in $(find "$androidtoolchain" -maxdepth 1 -type f -printf '%f\n' | grep -v \.orig); do
bin="$androidtoolchain/$f"
orig="$androidtoolchain/$f.orig"
if [ ! -e "$orig" ]; then