exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit f3770761748b454222b1a0d8c3a94ec8b5ecae63
parent 2805018da25b07a36b1ab56e6fc990d72d86d70a
Author: Thien-Thi Nguyen <ttn@gnuvola.org>
Date:   Thu, 30 Jun 2022 03:32:29 -0400

refactor slightly

(ensure): Don't repeat "$src/$fn" and "$dst/$fn";
instead, compute them once as "$src" and "$dst", respectively.

Diffstat:
Mcontrib/gana-update.sh | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/contrib/gana-update.sh b/contrib/gana-update.sh @@ -17,13 +17,13 @@ ensure () # $2 -- src dir under contrib/ # $3 -- dst dir under ./ fn="$1" - src="contrib/$2" - dst="./$3" + src="contrib/$2/$fn" + dst="./$3/$fn" - if ! diff $src/$fn $dst/$fn > /dev/null + if ! diff $src $dst > /dev/null then - cp $src/$fn $dst/$fn - chmod -w $dst/$fn + cp $src $dst + chmod -w $dst fi }