mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +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
|
# Usage: pj [extra args…] extra args are forwarded to the picked task
|
||||||
#
|
#
|
||||||
# Env:
|
# 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
|
# 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
|
# picker opens and `pj --run` writes `ran`, so the binding
|
||||||
# can tell "no tasks" / "cancelled" / "task printed output"
|
# can tell "no tasks" / "cancelled" / "task printed output"
|
||||||
@@ -392,7 +390,7 @@ while :; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [ ${#recs[@]} -eq 0 ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user