From 7e77bd634d3968abfbb61bc82901781d5b8d4ab0 Mon Sep 17 00:00:00 2001 From: Mykola Malkov Date: Thu, 5 Apr 2018 15:40:02 +0200 Subject: [PATCH] Fix default exit code of bailout Exit code 0 if the funciton is called without arguments --- sbin/netcardconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/netcardconfig b/sbin/netcardconfig index fc4e645..83cac2b 100755 --- a/sbin/netcardconfig +++ b/sbin/netcardconfig @@ -21,7 +21,7 @@ TMP=$(mktemp) bailout() { rm -f "$TMP" - exit "$1" + exit "${1:-0}" } # This function produces the IWOURLINE for interfaces -- 2.1.4