diff options
| -rwxr-xr-x | init | 4 | ||||
| -rwxr-xr-x | scripts/testing/run-test-baremetal.sh | 1 | ||||
| -rwxr-xr-x | scripts/testing/run-test.sh | 1 |
3 files changed, 4 insertions, 2 deletions
@@ -8,11 +8,11 @@ pacman -S --noconfirm tmux git echo "root:welcome" | chpasswd # find the hostname from the file -hostname=$(</etc/hostname) +hostname=$(cat /etc/hostname) # identify which interface is up, then find the ip address interface_up=$(ip -br addr show | grep UP | grep -v 'lo' | awk '{print $1}' | head -n1) -ipaddress=$(ip addr show $interface_up | grep 'inet ' | awk '{print $2}' | cut -d/ -f1) +ipaddress=$(ip addr show "$interface_up" | grep 'inet ' | awk '{print $2}' | cut -d/ -f1) # start the ssh daemon systemctl start sshd diff --git a/scripts/testing/run-test-baremetal.sh b/scripts/testing/run-test-baremetal.sh index 3beaefc..b6d1ab1 100755 --- a/scripts/testing/run-test-baremetal.sh +++ b/scripts/testing/run-test-baremetal.sh @@ -94,6 +94,7 @@ cleanup_baremetal() { trap cleanup_baremetal EXIT # Override VM_IP for validation.sh ssh_cmd function +# shellcheck disable=SC2034 # consumed by the sourced validation.sh VM_IP="$TARGET_HOST" # Initialize logging 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 |
