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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user