danielfett / advancedcaching

Advanced Geocaching Tool for Linux
http://www.danielfett.de/internet-und-opensource,software,agtl
31 stars 13 forks source link

make-maemo-debuild.sh: rm: missing operand #160

Closed aapo closed 11 years ago

aapo commented 11 years ago

make-maemo-debuild.sh gives:

rm: missing operand
Try `rm --help' for more information.

Fix:

diff --git a/build/make-maemo-debuild.sh b/build/make-maemo-debuild.sh
index 8ef405e..eec65ff 100755
--- a/build/make-maemo-debuild.sh
+++ b/build/make-maemo-debuild.sh
@@ -25,7 +25,7 @@ mkdir -p $PKGTMP/src/opt/agtl-maemo/
 cp changelog $PKGTMP/debian/
 # Copy python sources 
 rsync -av --delete --exclude='*.pyc' $SOURCE/utils.py $SOURCE/astral.py    $SOURCE/connection.py $SOURCE/gpsreader.py $SOURCE/cachedownloader.py $SOURCE/coordfinder.py $SOURCE/geo.py $SOURCE/gui.py $SOURCE/cli
-find $PKGTMP/src/opt/agtl-maemo/ -iname '*.pyc' | xargs rm 
+find $PKGTMP/src/opt/agtl-maemo/ -iname '*.pyc' | xargs rm -f
 # Copy additional resources
 cp -r $SOURCE/data $PKGTMP/src/opt/agtl-maemo/
 cp -r $SOURCE/actors $PKGTMP/src/opt/agtl-maemo/