From da2c0275d6de66f12bce580208aa139559b89996 Mon Sep 17 00:00:00 2001 From: zawz Date: Fri, 14 Jan 2022 14:48:53 +0100 Subject: [PATCH] zltod: return error code on fail --- ztr/zltod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ztr/zltod b/ztr/zltod index fd01cdc..46a5cea 100755 --- a/ztr/zltod +++ b/ztr/zltod @@ -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