mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
Doh
This commit is contained in:
parent
2f5789c5d6
commit
27131866c9
1 changed files with 11 additions and 0 deletions
|
@ -90,4 +90,15 @@ fail() {
|
|||
exit 1
|
||||
}
|
||||
|
||||
expect() {
|
||||
local expected res
|
||||
expected="$1"
|
||||
shift
|
||||
set +e
|
||||
"$@"
|
||||
res="$?"
|
||||
set -e
|
||||
[[ $res -eq $expected ]]
|
||||
}
|
||||
|
||||
set -x
|
||||
|
|
Loading…
Reference in a new issue