rust-core_io/publish.sh

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