Sfoglia il codice sorgente

Add publish script

Jethro Beekman 7 anni fa
parent
commit
0ad4c19f7e
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      publish.sh

+ 6 - 0
publish.sh

@@ -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