build: fail if not inside git clone
related: https://github.com/spesmilo/electrum/issues/8284
This commit is contained in:
@@ -35,6 +35,8 @@ export WINE_PYTHON="wine $WINE_PYHOME/python.exe -OO -B"
|
||||
|
||||
. "$CONTRIB"/build_tools_util.sh
|
||||
|
||||
git -C "$PROJECT_ROOT" rev-parse 2>/dev/null || fail "Building outside a git clone is not supported."
|
||||
|
||||
info "Clearing $here/build and $here/dist..."
|
||||
rm "$here"/build/* -rf
|
||||
rm "$here"/dist/* -rf
|
||||
|
||||
Reference in New Issue
Block a user