mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 17:16:15 +02:00
27a02bc7d1
the additional function calls obscured the actual logic Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
14 lines
210 B
Bash
Executable file
14 lines
210 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eu -o pipefail
|
|
|
|
test=$1
|
|
init=${2-}
|
|
|
|
dir="$(dirname "${BASH_SOURCE[0]}")"
|
|
source "$dir/common-test.sh"
|
|
|
|
if [ -n "$init" ]; then
|
|
(run "$init" 2>/dev/null > /dev/null)
|
|
fi
|
|
run "$test"
|