wok rev 5012
rm rpm in for loop to save RAM (thanks Eric)
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Sun Feb 28 19:50:05 2010 +0000 (2010-02-28) |
parents | e5dde73f1ac9 |
children | d6cd66a2b5fc |
files | get-OpenOffice3/stuff/get-OpenOffice3 |
line diff
1.1 --- a/get-OpenOffice3/stuff/get-OpenOffice3 Sun Feb 28 19:46:30 2010 +0000 1.2 +++ b/get-OpenOffice3/stuff/get-OpenOffice3 Sun Feb 28 19:50:05 2010 +0000 1.3 @@ -117,7 +117,7 @@ 1.4 for i in *.rpm 1.5 do 1.6 if (! echo $i | egrep -qi $EXCLUDE); then 1.7 - rpm2cpio $i | cpio -id >> $LOG 2>&1 1.8 + (rpm2cpio $i | cpio -id >> $LOG 2>&1 ) && rm -f $i 1.9 fi 1.10 done 1.11 rpm2cpio desktop-integration/*freedesktop*.rpm | cpio -id >> $LOG 2>&1