瀏覽代碼

bin: fix warning in cdtemp

Thomas Dy 4 周之前
父節點
當前提交
d0195db577
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      .roaming/bin/cdtemp

+ 1 - 1
.roaming/bin/cdtemp

@@ -7,7 +7,7 @@ set -euo pipefail
 cmd="${1:-}"
 
 if [ "$cmd" = "last" ]; then
-  dir=$(find "$TEMPSPACE" -type d -mindepth 1 -maxdepth 1 | sort | tail -n 1)
+  dir=$(find "$TEMPSPACE" -mindepth 1 -maxdepth 1 -type d | sort | tail -n 1)
   cd "$dir"
 elif [ "$cmd" = "prune" ]; then
   echo "Deleting empty directories"