scripts: Ensure git config changes are reverted on failure

Fixes #595
This commit is contained in:
Albert Ou
2021-01-14 13:09:13 -08:00
parent f7a98f23bc
commit 36fe690204
2 changed files with 33 additions and 36 deletions

View File

@@ -4,7 +4,7 @@ set -e
set -o pipefail
# Enable submodule update for FPGA tools.
git config --unset submodule.fpga/fpga-shells.update
git config --unset submodule.fpga/fpga-shells.update || :
# Initialize local FPGA tools.
git submodule update --init --recursive fpga/fpga-shells
# Disable submodule update for FPGA tools.