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.
This commit is contained in:
Philippe Saint-Pierre
2012-05-06 15:52:04 -04:00
parent 60433c9277
commit 42ae726e67
+1 -1
View File
@@ -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