2
0

publish.sh 151 B

123456
  1. #!/bin/bash
  2. OLD_GIT_PERM=$(stat --printf=%a .git)
  3. trap "chmod $OLD_GIT_PERM .git; exit 1" SIGINT
  4. chmod 000 .git
  5. cargo publish
  6. chmod $OLD_GIT_PERM .git