Explorar o código

bin: fix order of find arguments

Thomas Dy hai 9 meses
pai
achega
a6c90134a9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      .local/bin/cdtemp

+ 1 - 1
.local/bin/cdtemp

@@ -11,7 +11,7 @@ if [ "$cmd" = "last" ]; then
   cd "$dir"
 elif [ "$cmd" = "prune" ]; then
   echo "Deleting empty directories"
-  find "$TEMPSPACE" -type d -mindepth 1 -maxdepth 1 -empty -delete -print
+  find "$TEMPSPACE" -mindepth 1 -maxdepth 1 -type d -empty -delete -print
 else
   dir="$TEMPSPACE/$(date +%s)"
   mkdir "$dir"