rust-core_io/publish.sh
2016-11-02 22:43:30 -07:00

7 lines
151 B
Bash
Executable File

#!/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