summaryrefslogtreecommitdiffhomepage
path: root/test/scripts
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2024-01-09 13:10:37 +0100
committerDavid Lönnhager <david.l@mullvad.net>2024-01-09 14:24:03 +0100
commitda7cbf13a85b09659b1d64b0018e6b9177507147 (patch)
treec031e0355c1bba136daa14bfd66aaba5fff79c51 /test/scripts
parent5d0bcc201050c90353418d3413a92e692ae3faee (diff)
downloadmullvadvpn-da7cbf13a85b09659b1d64b0018e6b9177507147.tar.xz
mullvadvpn-da7cbf13a85b09659b1d64b0018e6b9177507147.zip
Exit immediately if ssh-setup.sh fails
Diffstat (limited to 'test/scripts')
-rw-r--r--test/scripts/ssh-setup.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/scripts/ssh-setup.sh b/test/scripts/ssh-setup.sh
index 4aefcfdeed..bfe0b66f12 100644
--- a/test/scripts/ssh-setup.sh
+++ b/test/scripts/ssh-setup.sh
@@ -106,5 +106,8 @@ fi
setup_systemd
# Install required packages
-which apt &>/dev/null && apt install -f xvfb wireguard-tools
-which dnf &>/dev/null && dnf install -y xorg-x11-server-Xvfb wireguard-tools
+if which apt &>/dev/null; then
+ apt install -f xvfb wireguard-tools
+elif which dnf &>/dev/null; then
+ dnf install -y xorg-x11-server-Xvfb wireguard-tools
+fi