1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-04-21 18:21:51 +02:00

Trying to figure out how to balance printing help

This commit is contained in:
Ryan Greenup 2020-07-15 04:56:39 +10:00
parent 225c385400
commit 7f1e24f6f4

@ -102,7 +102,9 @@ arguments () {
function NoteFind() {
NoteFind.sh "${@:-}" | xargs xdg-open &> /dev/null
## If it's more than two lines, the output isn't what's expected,
## instead is more likely help or a message and so that's what should be returned
NoteFind.sh "${@:-}" | (( "$(wc -l)" > 2 )) && echo "Greater than 2" || echo "Less than two"
exit 0
}