From 0ad4c19f7e6fcd0a09e5704b353e533dfb5d45f6 Mon Sep 17 00:00:00 2001 From: Jethro Beekman Date: Wed, 2 Nov 2016 22:43:30 -0700 Subject: [PATCH] Add publish script --- publish.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 publish.sh diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..dc6bc94 --- /dev/null +++ b/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