Created
May 15, 2021 04:08
-
-
Save skurhse/f9c5d3b806d4ec501590dd15d4fcb9c1 to your computer and use it in GitHub Desktop.
Bash declare -n example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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