Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #107 from aureliojargas/patch-3
Browse files Browse the repository at this point in the history
Simplify logic using || instead of negated if
  • Loading branch information
calavera committed Dec 10, 2017
2 parents 4089593 + 8cf34d8 commit 10a2dc3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions run-build-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,9 @@ mkdir -p $NETLIFY_CACHE_DIR/.cache
: ${NPM_FLAGS=""}

install_deps() {
if [ ! -f $1 ]
then
return 0
fi
if [ ! -f $3 ]
then
return 0
fi
[ -f $1 ] || return 0
[ -f $3 ] || return 0

SHA1="$(shasum $1)-$2"
SHA2="$(cat $3)"
if [ "$SHA1" == "$SHA2" ]
Expand Down

0 comments on commit 10a2dc3

Please sign in to comment.