bin/deps-and-gyp: deal with corner cases cleanly

TBR=mtklein@google.com
NOTRY=true

Review URL: https://codereview.chromium.org/1415193006
This commit is contained in:
halcanary 2015-11-03 11:18:11 -08:00 committed by Commit bot
parent 3f846ae913
commit 4a40a46c65

5
bin/deps-and-gyp Normal file → Executable file
View File

@ -34,10 +34,7 @@ if ! [ -f DEPS ]; then
exit 1
fi
if [ "$(git hash-object DEPS)" != "$(git config sync-deps.last)" ] ; then
GIT_SYNC_DEPS_QUIET=1 python tools/git-sync-deps || exit
git config sync-deps.last "$(git hash-object DEPS)"
fi
GIT_SYNC_DEPS_QUIET=1 python tools/git-sync-deps || exit
catifexists() { if [ -f "$1" ]; then cat "$1"; fi; }