diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-06-13 22:32:32 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-06-13 22:32:32 +0200 |
commit | 4749a118d9e4720fadd2f33e80ccad772c60ace3 (patch) | |
tree | 2867712e18a52d25b15828cc9b6b247794fda738 | |
parent | 2108805a4ae0791c29442e24c43edcf570b99bc7 (diff) | |
download | deployment-4749a118d9e4720fadd2f33e80ccad772c60ace3.tar.gz deployment-4749a118d9e4720fadd2f33e80ccad772c60ace3.tar.bz2 deployment-4749a118d9e4720fadd2f33e80ccad772c60ace3.zip |
Do not brutally override response file
-rwxr-xr-x | bin/taler-deployment-sign | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/taler-deployment-sign b/bin/taler-deployment-sign index 0f86943..c5fb3b7 100755 --- a/bin/taler-deployment-sign +++ b/bin/taler-deployment-sign @@ -19,10 +19,12 @@ if ! test -f $(taler-config -s paths -o taler_deployment_shared -f)/hier.lock; t exit 1 fi -taler-exchange-wire WIRE_RESPONSE=$(taler-config -s account-1 -o wire_response -f) -# If chmod is not possible (= the owner is the other color), then -# the permissions are already right on it, hence we can tolerate to -# not set those. -chmod 770 $WIRE_RESPONSE || true +if test -e "$WIRE_RESPONSE"; then + echo "Will not override that wire response file ($WIRE_RESPONSE); exiting." + exit 0 +fi + +taler-exchange-wire +chmod 770 $WIRE_RESPONSE |