1
0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-12 19:18:28 +02:00

Fix tests

This commit is contained in:
Dominik Ritter 2019-01-22 19:18:09 +01:00
parent da50151d24
commit 32d3216bde
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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