scripts/clean: fixup previous commit

This commit is contained in:
Lukas Rusak 2016-04-05 02:13:29 -07:00
parent 82fab60220
commit 73795e4d8f

View File

@ -48,13 +48,10 @@ clean_package() {
if [ "$1" = "--all" ]; then
if [ ! -z "$2" ]; then
for PROJECT in $(ls -1 projects); do
for archfile in projects/$PROJECT/linux/linux.*.conf ; do
for archfile in projects/$PROJECT/linux/linux.*.conf; do
if [ ! -f "$archfile" ]; then
for archfile in projects/$PROJECT/linux/*/linux.*.conf ; do
archfile=$archfile
done
archfile="$(ls -1 projects/$PROJECT/linux/*/linux.*.conf | head -1)"
fi
echo $archfile
ARCH=`echo $archfile | sed -n '$s/\.conf//;$s/.*\.//p'`
PROJECT=$PROJECT ARCH=$ARCH ./scripts/clean $2
done