I am using package-name -v
to see if the output contains "command not found" and if the output contains command not found, I have to do something.
!/bin/bash
bml_check="$(bml -v)"
echo $bml_check
The value of bml_check is always showing empty. Can someone help with this?
Aucun commentaire:
Enregistrer un commentaire