Don't use backticks.

This commit is contained in:
William Boman 2015-02-20 00:11:36 +01:00
parent 84626341be
commit 3800e24870

View file

@ -17,9 +17,9 @@ hook=$(cat <<EOF
### git-stats hook (begin) ### ### git-stats hook (begin) ###
# Copy last commit hash to clipboard on commit # Copy last commit hash to clipboard on commit
commit_hash=\`git rev-parse HEAD\` commit_hash=\$(git rev-parse HEAD)
repo_url=\`git config --get remote.origin.url\` repo_url=\$(git config --get remote.origin.url)
commit_date=\`git log -1 --format=%cd\` commit_date=\$(git log -1 --format=%cd)
commit_data="\"{ \"date\": \"\$commit_date\", \"url\": \"\$repo_url\", \"hash\": \"\$commit_hash\" }\"" commit_data="\"{ \"date\": \"\$commit_date\", \"url\": \"\$repo_url\", \"hash\": \"\$commit_hash\" }\""
git-stats --record "\$commit_data" git-stats --record "\$commit_data"
### git-stats hook (end) ### ### git-stats hook (end) ###