Merge pull request #757 from LaurentGoderre/fix-update-macosx

Fix the update script for macOS
This commit is contained in:
Peter Dave Hello 2018-05-25 02:28:20 +08:00 committed by GitHub
commit 9e004a0bfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -75,7 +75,12 @@ function update_node_version() {
if [ "${variant}" = "alpine" ]; then
alpine_version=$(get_config "./" "alpine_version")
sed -Ei "s/(alpine:)0.0/\\1${alpine_version}/" "${dockerfile}"
sed -Ei -e "s/(alpine:)0.0/\\1${alpine_version}/" "${dockerfile}"
fi
# Required for POSIX sed
if [ -f "${dockerfile}-e" ]; then
rm "${dockerfile}-e"
fi
)
}