Skip to content

Instantly share code, notes, and snippets.

@skurhse
Created May 15, 2021 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skurhse/f9c5d3b806d4ec501590dd15d4fcb9c1 to your computer and use it in GitHub Desktop.
Save skurhse/f9c5d3b806d4ec501590dd15d4fcb9c1 to your computer and use it in GitHub Desktop.
Bash declare -n example
for e in 'key' 'tar' 'sig'
do
declare -n ref="$e"
wget --output-document "${ref[file]}" "${ref[url]}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment