commit 4749a118d9e4720fadd2f33e80ccad772c60ace3 parent 2108805a4ae0791c29442e24c43edcf570b99bc7 Author: Marcello Stanisci <stanisci.m@gmail.com> Date: Thu, 13 Jun 2019 22:32:32 +0200 Do not brutally override response file Diffstat:
| M | bin/taler-deployment-sign | | | 12 | +++++++----- |
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git 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