From fb16787bd823042529fb2ba8ee796e0d96ed6752 Mon Sep 17 00:00:00 2001 From: Gene Hoffman <30377676+hoffmang9@users.noreply.github.com> Date: Mon, 8 Feb 2021 14:01:40 -0800 Subject: [PATCH] intall-gui.sh now respects changes in the chia-blockchain-gui submodule (#867) * Check whether -gui submodule has been modified * shellcheck --- install-gui.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/install-gui.sh b/install-gui.sh index dfa0f3eada87..45c67dcbcf45 100644 --- a/install-gui.sh +++ b/install-gui.sh @@ -55,7 +55,17 @@ fi # for Mac and Windows so skip unless completing a source/developer install # Ubuntu special cases above if [ ! "$CI" ]; then - git submodule update --init --recursive + SUBMODULE_STATUS=$(git submodule status) + if [[ $SUBMODULE_STATUS = " "* ]]; + then + git submodule update --init --recursive + echo "Running git submodule update --init --recursive." + echo "" + else + echo "The chia-blockchain-gui submodule is in altered state." + echo "Skipping git submodule update." + echo "" + fi cd chia-blockchain-gui npm install npm audit fix