Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Zverev <zverik@textual.ru>2015-10-05 19:16:12 +0300
committerIlya Zverev <zverik@textual.ru>2015-10-05 19:16:12 +0300
commit4a5e6d0e9c7fbfb883d00a028cd5721f85a07e90 (patch)
tree839ea646bac94d65b852e1272acec20554487870 /configure.sh
parent621773bcc117e6436c196496a6844b18b7120d13 (diff)
Fix configure.sh for sh shell
Diffstat (limited to 'configure.sh')
-rwxr-xr-xconfigure.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.sh b/configure.sh
index fc64c1b632..9bea086b9d 100755
--- a/configure.sh
+++ b/configure.sh
@@ -2,7 +2,7 @@
# Please run this script to configure the repository after cloning it.
# Stop on the first error.
-set -e
+set -e -u
PRIVATE_HEADER="private.h"
PRIVATE_PROPERTIES="android/secure.properties"
@@ -54,8 +54,7 @@ ext {
fi
fi
-git clone --depth 1 "$PRIVATE_REPO" "$TMP_REPO_DIR"
-if [ $? == 0 ]; then
+if git clone --depth 1 "$PRIVATE_REPO" "$TMP_REPO_DIR"; then
echo "Saved private repository url to $SAVED_PRIVATE_REPO_FILE"
echo "$PRIVATE_REPO" > "$SAVED_PRIVATE_REPO_FILE"
rm -rf "$TMP_REPO_DIR/.git" "$TMP_REPO_DIR/README.md"