aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest/segments/public_ip.spec2
-rwxr-xr-xtest/segments/vpn_ip.spec4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/segments/public_ip.spec b/test/segments/public_ip.spec
index abfecbcb..a3f41e61 100755
--- a/test/segments/public_ip.spec
+++ b/test/segments/public_ip.spec
@@ -266,7 +266,7 @@ function testPublicIpSegmentWithVPNTurnedOnOsx() {
# Fake ifconfig
cat > $FOLDER/sbin/ifconfig <<EOF
-#!/bin/sh
+#!/usr/bin/env zsh
cat <<INNER
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
diff --git a/test/segments/vpn_ip.spec b/test/segments/vpn_ip.spec
index b213202e..3333fd07 100755
--- a/test/segments/vpn_ip.spec
+++ b/test/segments/vpn_ip.spec
@@ -29,7 +29,7 @@ function tearDown() {
function fakeIfconfig() {
# Fake ifconfig
cat > $FOLDER/sbin/ifconfig <<EOF
-#!/bin/sh
+#!/usr/bin/env zsh
if [[ "\$#" -gt 0 ]]; then
cat <<INNER
@@ -80,7 +80,7 @@ function fakeIp() {
local INTERFACE2="${2}"
[[ -z "${INTERFACE2}" ]] && INTERFACE2="disabled-if2"
cat > $FOLDER/sbin/ip <<EOF
-#!/bin/sh
+#!/usr/bin/env zsh
if [[ "\$*" == 'link ls up' ]]; then
cat <<INNER