Skip to content
Snippets Groups Projects
Commit 77faaf6a authored by Matthew McGill's avatar Matthew McGill
Browse files

hopefully centos compatible now

Former-commit-id: 9e58f43869dfb90cc491bb3aa9ac9df4a6ee6347
parent 7225037d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment