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} _______________________________________________ maemo-commits mailing list maemo-commits@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-commits