Fixed the update script for mac OS

This commit is contained in:
Laurent Goderre 2018-05-24 02:41:50 -04:00
parent d4c1e53573
commit 46b4159599
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
)
}