Add publish script

This commit is contained in:
Jethro Beekman 2016-11-02 22:43:30 -07:00
parent 58e2337cf1
commit 0ad4c19f7e
1 changed files with 6 additions and 0 deletions

6
publish.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
OLD_GIT_PERM=$(stat --printf=%a .git)
trap "chmod $OLD_GIT_PERM .git; exit 1" SIGINT
chmod 000 .git
cargo publish
chmod $OLD_GIT_PERM .git