build: fail if not inside git clone
related: https://github.com/spesmilo/electrum/issues/8284
This commit is contained in:
@@ -25,6 +25,8 @@ mkdir -p "$CACHEDIR" "$DLL_TARGET_DIR"
|
||||
|
||||
cd "$PROJECT_ROOT"
|
||||
|
||||
git -C "$PROJECT_ROOT" rev-parse 2>/dev/null || fail "Building outside a git clone is not supported."
|
||||
|
||||
|
||||
which brew > /dev/null 2>&1 || fail "Please install brew from https://brew.sh/ to continue"
|
||||
which xcodebuild > /dev/null 2>&1 || fail "Please install xcode command line tools to continue"
|
||||
|
||||
Reference in New Issue
Block a user