Last active
June 16, 2016 11:57
-
-
Save zhunik/57f68d4efed9a76e79cce87fda79fac5 to your computer and use it in GitHub Desktop.
unzip assets ufter "git pull"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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