diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-20 12:02:47 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-20 12:02:47 -0500 |
| commit | 618e6cce0b1662f50c6e766bba7e11b6d6952532 (patch) | |
| tree | 20f90c1b162138dad1ef53de69765cbc931dd8df /scripts/testing/run-test.sh | |
| parent | 2172c904e34e044ba938d5a4948182d9fd878816 (diff) | |
| download | archsetup-618e6cce0b1662f50c6e766bba7e11b6d6952532.tar.gz archsetup-618e6cce0b1662f50c6e766bba7e11b6d6952532.zip | |
fix: correct a POSIX-sh bashism in init and document two SC2034 cases
init runs under #!/bin/sh but used $(<file) to read /etc/hostname, a bashism that breaks on a strict POSIX sh. I switched it to $(cat) and quoted $interface_up in the same script.
The two VM_IP assignments in the test scripts are read by the sourced validation.sh, which shellcheck can't follow, so they now carry a documented disable=SC2034 instead of a bare suppression. The rest of the shellcheck findings across the scripts are intentional (word-splitting on $SSH_OPTS, integer tests in [ ]) or already accepted, so I left them alone.
Diffstat (limited to 'scripts/testing/run-test.sh')
| -rwxr-xr-x | scripts/testing/run-test.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/testing/run-test.sh b/scripts/testing/run-test.sh index 18f4fdf..a02412c 100755 --- a/scripts/testing/run-test.sh +++ b/scripts/testing/run-test.sh @@ -84,6 +84,7 @@ ARCHZFS_INBOX="$HOME/code/archzfs/inbox" ARCHSETUP_VM_CONF="$SCRIPT_DIR/archsetup-vm.conf" # Set VM_IP for validation.sh backward compatibility +# shellcheck disable=SC2034 # consumed by the sourced validation.sh VM_IP="localhost" # Initialize logging and VM paths |
