Skip to content

Commit

Permalink
Fix prepare script (#34)
Browse files Browse the repository at this point in the history
* Submodule update should be done before checking commit hash.
  • Loading branch information
greensky00 authored Feb 27, 2020
1 parent c05ef98 commit d19a67d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set -ex
RECOMPILE_FDB=true

if [ -d third_party/forestdb ]; then
git submodule update
pushd third_party/forestdb
if [ $(git rev-parse HEAD) == ${FORESTDB_COMMIT} ]; then
RECOMPILE_FDB=false
Expand All @@ -14,7 +15,6 @@ if [ -d third_party/forestdb ]; then
RECOMPILE_FDB=true
fi
popd
git submodule update
fi

if [ ! -f third_party/forestdb/CMakeLists.txt ]; then
Expand Down

0 comments on commit d19a67d

Please sign in to comment.