summaryrefslogtreecommitdiff
path: root/delete-files
diff options
context:
space:
mode:
Diffstat (limited to 'delete-files')
-rwxr-xr-xdelete-files2
1 files changed, 1 insertions, 1 deletions
diff --git a/delete-files b/delete-files
index 0560725..1354016 100755
--- a/delete-files
+++ b/delete-files
@@ -22,7 +22,7 @@ sudo mount "$dev" "$dir"
echo
echo "delete all files under $dir"
-find "$dir" -mindepth 1 -delete
+find "$dir" -mindepth 2 ! -delete
echo
echo "unmount $dev"