Skip to content

Instantly share code, notes, and snippets.

@zhunik
Last active June 16, 2016 11:57
Show Gist options
  • Save zhunik/57f68d4efed9a76e79cce87fda79fac5 to your computer and use it in GitHub Desktop.
Save zhunik/57f68d4efed9a76e79cce87fda79fac5 to your computer and use it in GitHub Desktop.
unzip assets ufter "git pull"
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
}
check_run assets.zip "unzip -o assets.zip -d ."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment