From 4d75c3d48eab05b5839becb8c9ae7d56bc292160 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 16 Apr 2018 18:31:10 -0400 Subject: [PATCH] avoid wrapping symlinks --- standalone/android/toolchainpath | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standalone/android/toolchainpath b/standalone/android/toolchainpath index 593d6ec8d4..bbed01c88f 100755 --- a/standalone/android/toolchainpath +++ b/standalone/android/toolchainpath @@ -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