mirror of
https://github.com/opnsense/src.git
synced 2026-04-01 15:35:10 -04:00
is supposed to be 0, not the status of the previous command. Reported by: Eygene Ryabinkin PR: 116559 Approved by: re (gnn)
13 lines
123 B
Text
13 lines
123 B
Text
#$FreeBSD$
|
|
f()
|
|
{
|
|
false
|
|
case $1 in
|
|
foo) true ;;
|
|
bar) false ;;
|
|
esac
|
|
}
|
|
|
|
f foo || exit 1
|
|
f bar && exit 1
|
|
f quux || exit 1
|