intall-gui.sh now respects changes in the chia-blockchain-gui submodule (#867)

* Check whether -gui submodule has been modified

* shellcheck
This commit is contained in:
Gene Hoffman 2021-02-08 14:01:40 -08:00 committed by GitHub
parent e55844f847
commit fb16787bd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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