mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
breaking(cli): remove PJ_QUIET suppression for empty task list
This commit is contained in:
1 parent
c62668af30
commit
43dfe48848
1 file changed
+1
-3
@@ -14,8 +14,6 @@
|
||||
# Usage: pj [extra args…] extra args are forwarded to the picked task
|
||||
#
|
||||
# Env:
|
||||
# PJ_QUIET=1 suppress the "no task sources" error — the down-arrow
|
||||
# bindings use this, where an empty tree is the normal case.
|
||||
# PJ_STATE=FILE key bindings pass a path; pj writes `open` to it when the
|
||||
# picker opens and `pj --run` writes `ran`, so the binding
|
||||
# can tell "no tasks" / "cancelled" / "task printed output"
|
||||
@@ -392,7 +390,7 @@ while :; do
|
||||
done
|
||||
|
||||
if [ ${#recs[@]} -eq 0 ]; then
|
||||
[ -n "${PJ_QUIET-}" ] || echo "pj: no task sources found in this tree" >&2
|
||||
echo "pj: no task sources found in this tree" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user