Add prompt msg about Dockerfile updated in update.sh

This commit is contained in:
Peter Dave Hello 2018-12-19 03:06:26 +08:00
parent 2c75ae92f8
commit 95bf09c7fd
1 changed files with 7 additions and 0 deletions

View File

@ -178,6 +178,13 @@ function update_node_version() {
if [ -f "${dockerfile}-tmp-e" ]; then
rm "${dockerfile}-tmp-e"
fi
if diff -q "${dockerfile}-tmp" "${dockerfile}" > /dev/null; then
echo "${dockerfile} is already up to date!"
else
echo "${dockerfile} updated!"
fi
mv -f "${dockerfile}-tmp" "${dockerfile}"
)
}