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