Skip to content

Commit

Permalink
Remove unneeded escapes from eval
Browse files Browse the repository at this point in the history
  • Loading branch information
greenc-FNAL committed Dec 12, 2023
1 parent 4d364e4 commit 34b3179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/build-spack-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ _remove_hash() {
local hashes_var="$1"
shift
local OIFS="$IFS"; IFS=$'\n'; IFS="$OIFS"; handled_hashes=($(echo "$*" | sort -u)); IFS="$OIFS"
eval local "hashes=(\${$hashes_var[*]:+\"\${$hashes_var\[@\]}\"})"
eval local "hashes=(\${$hashes_var[*]:+\"\${$hashes_var[@]}\"})"
(( ${#hashes[@]} )) || return
local filtered_hashes=()
for hash in ${hashes[*]:+"${hashes[@]}"}; do
Expand Down

0 comments on commit 34b3179

Please sign in to comment.