From f469752a9c3ceebcdeaf8d6b84cf03e3df0a0263 Mon Sep 17 00:00:00 2001 From: Victor Popov Date: Tue, 15 Jan 2019 11:40:37 +0300 Subject: [PATCH] Remove requirement to build from a git checkout Sources can be obtained via download of tarball from github, and in that case git rev-parse is not possible. Also, every path in script is not dependent on current workdir. --- configure.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/configure.sh b/configure.sh index 91780cfb9b..b10fc21993 100755 --- a/configure.sh +++ b/configure.sh @@ -14,11 +14,6 @@ PRIVATE_NETWORK_CONFIG="$BASE_PATH/android/res/xml/network_security_config.xml" SAVED_PRIVATE_REPO_FILE="$BASE_PATH/.private_repository_url" TMP_REPO_DIR="$BASE_PATH/.tmp.private.repo" -if [ "$(git rev-parse --show-toplevel)" != "$(pwd -P)" ]; then - echo "Please run this script from the root repository folder." - exit 1 -fi - if [ -f "$SAVED_PRIVATE_REPO_FILE" ]; then PRIVATE_REPO=`cat "$SAVED_PRIVATE_REPO_FILE"` echo "Using stored private repository URL: $PRIVATE_REPO"