zltod: return error code on fail
This commit is contained in:
parent
818baf60b8
commit
da2c0275d6
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ then
|
|||
fi
|
||||
|
||||
_LIST=$(lsblk -lnio NAME,LABEL | tr -s ' ')
|
||||
_SEARCH=$(echo "$_LIST" | grep $GREPARGS "$*" )
|
||||
_SEARCH=$(echo "$_LIST" | grep $GREPARGS "$*" ) || exit $?
|
||||
|
||||
if [ -z "$_SEARCH" ] ## no result
|
||||
then
|
||||
|
|
|
|||
Loading…
Reference in a new issue