Jelajahi Sumber

bin: don't start a shell with cdtemp prune

Thomas Dy 9 bulan lalu
induk
melakukan
71dea4bd4d
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      .local/bin/cdtemp

+ 1 - 0
.local/bin/cdtemp

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