projects
/
grml-network.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
61fe774
)
Fix default exit code of bailout
author
Mykola Malkov
<mmalkov@sipwise.com>
Thu, 5 Apr 2018 13:40:02 +0000
(15:40 +0200)
committer
Mykola Malkov
<mmalkov@sipwise.com>
Thu, 5 Apr 2018 13:40:02 +0000
(15:40 +0200)
Exit code 0 if the funciton is called without arguments
sbin/netcardconfig
patch
|
blob
|
history
diff --git
a/sbin/netcardconfig
b/sbin/netcardconfig
index
fc4e645
..
83cac2b
100755
(executable)
--- 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