瀏覽代碼

bin: don't start a shell with cdtemp prune

Thomas Dy 9 月之前
父節點
當前提交
71dea4bd4d
共有 1 個文件被更改,包括 1 次插入0 次删除
  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"