Browse Source

bin: fix warning in cdtemp

Thomas Dy 4 weeks ago
parent
commit
d0195db577
1 changed files with 1 additions and 1 deletions
  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"