mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 13:41:56 +00:00
Fix tests
This commit is contained in:
parent
da50151d24
commit
32d3216bde
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue