Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 453 Bytes

is_empty_output.md

File metadata and controls

16 lines (11 loc) · 453 Bytes
is_empty_output COMMAND [ARG1] [ARG2] ...

Runs the command and returns true if it's output is empty. Combine it with "not" to negate it.

@ Setting some variables and checking whether they contain something
  - output_to_var DOMAIN is not empty_output cat /etc/myapp/domain.txt
  - output_to_var FOO is not empty_output echo $BAR
See also

not
output_to_var
is_empty_var