Fixed the gpg key substituion

This commit is contained in:
Laurent Goderre 2018-06-20 13:01:21 -04:00
parent 0af854ccb6
commit 1458f3e0bf
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ function update_node_version() {
for key_type in "node" "yarn"; do
while read -r line; do
pattern='"\$\{'$(echo "${key_type}" | tr '[:lower:]' '[:upper:]')'_KEYS\[@\]\}"'
sed -Ei -e "s/([ \\t]*)(${pattern})/\\1${line}${new_line}\\1\\2/" "${dockerfile}"
sed -Ei -e "s/([ \\t]*)(${pattern})/\\1${line}${new_line}\\1\\2/" "${dockerfile}-tmp"
done <"keys/${key_type}.keys"
sed -Ei -e "/${pattern}/d" "${dockerfile}-tmp"
done