From 95bf09c7fda8564869f06231c67319b8ca874e6f Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Wed, 19 Dec 2018 03:06:26 +0800 Subject: [PATCH] Add prompt msg about Dockerfile updated in update.sh --- update.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/update.sh b/update.sh index 85ed1277..5565383e 100755 --- a/update.sh +++ b/update.sh @@ -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}" ) }