From 77faaf6a326d915ef99ba83229764b77041635c0 Mon Sep 17 00:00:00 2001 From: Matthew McGill <mm8bx@mega-techx41.maas> Date: Sun, 3 Feb 2019 15:34:40 +0000 Subject: [PATCH] hopefully centos compatible now Former-commit-id: 9e58f43869dfb90cc491bb3aa9ac9df4a6ee6347 --- cicd_tests/test_foo.sh | 4 ++-- tools/selective_cfi/tests/manual_tests/test_foo.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cicd_tests/test_foo.sh b/cicd_tests/test_foo.sh index e05aa22b6..4a5fa599d 100755 --- a/cicd_tests/test_foo.sh +++ b/cicd_tests/test_foo.sh @@ -60,8 +60,8 @@ protect() echo Protecting file "$file" with config "$config" "$config" ./"$file" ./"$file"".""$config" varient_array_name="$(echo "$file" | sed -e 's/\./_/g')""_varients" - declare -n varient_array="$varient_array_name" - varient_array+=("$file"".""$config") + varient_file="$file"".""$config" + eval $varient_array_name+=\(\$varient_file\) done done diff --git a/tools/selective_cfi/tests/manual_tests/test_foo.sh b/tools/selective_cfi/tests/manual_tests/test_foo.sh index e0ae9c8dd..222621d06 100755 --- a/tools/selective_cfi/tests/manual_tests/test_foo.sh +++ b/tools/selective_cfi/tests/manual_tests/test_foo.sh @@ -58,8 +58,8 @@ protect() echo Protecting file "$file" with config "$config" | tee -a foo_protection_log.txt "$config" ./"$file" ./"$file"".""$config" | tee -a foo_protection_log.txt varient_array_name="$(echo "$file" | sed -e 's/\./_/g')""_varients" - declare -n varient_array="$varient_array_name" - varient_array+=("$file"".""$config") + varient_file="$file"".""$config" + eval $varient_array_name+=\(\$varient_file\) done done -- GitLab