From a6d5c452d5b54d7e0479570cb40f110be0717f10 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Fri, 11 Aug 2023 10:35:42 -0700 Subject: [PATCH] Export variables so that they are accessible by exit function --- .github/workflows/validate-linux.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/validate-linux.sh b/.github/workflows/validate-linux.sh index abe318600..61670d670 100755 --- a/.github/workflows/validate-linux.sh +++ b/.github/workflows/validate-linux.sh @@ -32,12 +32,12 @@ test() { echo -e "\nRunning test for $RUN_LENGTH seconds" - NS1="ip netns exec ns1" - NS2="ip netns exec ns2" + export NS1="ip netns exec ns1" + export NS2="ip netns exec ns2" - ZT1="$NS1 ./zerotier-cli -p9996 -D$(pwd)/node1" + export ZT1="$NS1 ./zerotier-cli -p9996 -D$(pwd)/node1" # Specify custom port on one node to ensure that feature works - ZT2="$NS2 ./zerotier-cli -p9997 -D$(pwd)/node2" + export ZT2="$NS2 ./zerotier-cli -p9997 -D$(pwd)/node2" echo -e "\nSetting up network namespaces..." echo "Setting up ns1"