From 42ae726e67aeae301ffb8e54a8472ed218920aa1 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Sun, 6 May 2012 15:48:53 -0400 Subject: [PATCH] setgcc: add -l argument to ls call in script In previous, it was still working as I was more interested into != 0 than exact count. Still, for clarity sake, I add -l to get the actual count. Thanks Axel. --- data/bin/setgcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/bin/setgcc b/data/bin/setgcc index 3d54123f1a..0ff216a799 100755 --- a/data/bin/setgcc +++ b/data/bin/setgcc @@ -79,7 +79,7 @@ if [ -z "$gcc" ]; then fi # check whether the gcc exists -count=`ls $abiDir/$arch/$gcc/tools/current/bin/*gcc 2>/dev/null | wc -l` +count=`ls -l $abiDir/$arch/$gcc/tools/current/bin/*gcc 2>/dev/null | wc -l` if [ $count -eq 0 ]; then echo "Can't set GCC $arch/$gcc -- not installed." >&2 exit 1