[maemo-commits] [maemo-commits] r19576 - projects/haf/trunk/osso-app-killer/src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Dec 15 16:33:37 EET 2009
Author: dkedves
Date: 2009-12-15 16:33:08 +0200 (Tue, 15 Dec 2009)
New Revision: 19576

Modified:
   projects/haf/trunk/osso-app-killer/src/osso-clean-mmc.sh
Log:
Fix: empty directories also should be deleted...

Modified: projects/haf/trunk/osso-app-killer/src/osso-clean-mmc.sh
===================================================================
--- projects/haf/trunk/osso-app-killer/src/osso-clean-mmc.sh	2009-12-14 12:42:42 UTC (rev 19575)
+++ projects/haf/trunk/osso-app-killer/src/osso-clean-mmc.sh	2009-12-15 14:33:08 UTC (rev 19576)
@@ -14,7 +14,11 @@
 DONT=${DONT}'(\./Mac OS)|(\./\._)|(\.VolumeIcon\.icns)|(\./\.sounds/Ringtones)'
 
 for rmable in $(find ./ | sort -r | egrep -v "${DONT}"); do
-  rm -f "$rmable"
+  if test -d "${rmable}"; then
+    rmdir "${rmable}"
+  else
+    rm -f "${rmable}"
+  fi
 done
 
 cd ${HOME}

More information about the maemo-commits mailing list