From e4da637a537ae2eca6772d698efb14b6f33619f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Wed, 30 Jun 2021 11:36:03 +0200 Subject: [PATCH] zfcpconf: set exit code explicitly (#1977434) --- zfcpconf.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zfcpconf.sh b/zfcpconf.sh index 8dc05ad..c3c6bf4 100644 --- a/zfcpconf.sh +++ b/zfcpconf.sh @@ -36,7 +36,7 @@ if [ -f "$CONFIG" ]; then modprobe zfcp fi if [ ! -d /sys/bus/ccw/drivers/zfcp ]; then - return + exit 1 fi sed 'y/ABCDEF/abcdef/' < $CONFIG | while read line; do case $line in @@ -74,3 +74,4 @@ if [ -f "$CONFIG" ]; then esac done fi +exit 0