From 0e1aba00f0ed2003ab4b8b3d8ef7a67a1eb64491 Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Wed, 17 Jun 2015 03:35:37 -0700 Subject: [PATCH] Assume modules are changed when not fetching them --- script-modules/module_process.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script-modules/module_process.sh b/script-modules/module_process.sh index 8832a461..a746d37d 100644 --- a/script-modules/module_process.sh +++ b/script-modules/module_process.sh @@ -246,12 +246,14 @@ module_process() { log_module_start $module_varname - module_revision_old="$(module_get_revision)" if [[ "$actions" = *fetch* ]]; then + module_revision_old="$(module_get_revision)" if ! module_fetch $1; then log_module_stop "module_process: Unable to fetch ${module_varname}." return 1 fi + else + module_revision_old="ASSUMED DIFFERENT" fi module_revision="$(module_get_revision 1)" if [ "0$skip_unchanged" -eq 1 ]; then