systeroid/.github/fixtures/check_vars.sh

11 lines
216 B
Bash
Raw Normal View History

2021-12-22 22:04:30 +00:00
#!/usr/bin/env bash
set -eu
2021-12-22 22:04:30 +00:00
while IFS='=' read -r variable value; do
if [[ -n "$value" ]]; then
echo "[+] $variable=$value"
test "$(sysctl -b ${variable/ /})" = "${value/ /}"
fi
done < "$1"