diff options
author | Darren Tucker <dtucker@dtucker.net> | 2022-08-11 10:23:55 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2022-08-11 10:24:56 +1000 |
commit | 4df246ec75751da7eb925e1880498300d8bda187 (patch) | |
tree | e01955aa22e70dae55a24333c0110c976d081f6a | |
parent | 2580916e48721802220c61ce9e0df1297c00bc07 (diff) |
Fix conditional for running hostbased tests.
-rwxr-xr-x | .github/run_test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/run_test.sh b/.github/run_test.sh index 7ea216b8..8eeaf5e9 100755 --- a/.github/run_test.sh +++ b/.github/run_test.sh @@ -7,7 +7,7 @@ set -ex # If we want to test hostbased auth, set up the host for it. -if [ ! -z "$SUDO" ] && [ ! -x "$TEST_SSH_HOSTBASED_AUTH" ]; then +if [ ! -z "$SUDO" ] && [ ! -z "$TEST_SSH_HOSTBASED_AUTH" ]; then sshconf=/usr/local/etc hostname | $SUDO tee $sshconf/shosts.equiv >/dev/null echo "EnableSSHKeysign yes" | $SUDO tee $sshconf/ssh_config >/dev/null |