소스 검색

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"