Skip to content

Commit

Permalink
fix(binaries): do not ask for create a directory on empty query
Browse files Browse the repository at this point in the history
  • Loading branch information
spywhere committed Sep 23, 2024
1 parent f759ff7 commit 2249397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binaries/work
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ query="$(echo "$output" | sed -n 1p)"
selection="$(echo "$output" | sed -n 2p)"
if test -n "$selection"; then
"$command" "$selection" || exit
elif test -z "$selection" && test "$command" = "cd"; then
elif test -z "$selection" -a -n "$query" -a "$command" = "cd"; then
printf "Create %s? [y/N] " "$WORKSPACE/$query"
while true; do
read -r REPLY
Expand Down

0 comments on commit 2249397

Please sign in to comment.