From 887627e130eb111a7f4536199dcd54d823c4c6c3 Mon Sep 17 00:00:00 2001 From: Midgard Date: Wed, 23 Dec 2020 23:39:04 +0100 Subject: [PATCH] Away with deprecated "and" style --- update-rates | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-rates b/update-rates index a3e9f46..e70b892 100755 --- a/update-rates +++ b/update-rates @@ -30,7 +30,7 @@ last_date="$(tail -n1 "$pricedb" | sed 's/P \([0-9 :-]*\) .*/\1/')" printf 'Fetching all exchange rates after %s\n' "$last_date" values="$(ssh $SSHARGS "$SERVERSIDE_PATH_TO_RATES '$last_date' $SYMBOLS")" -if [ $? -eq 0 -a -n "$values" ]; then +if [ $? -eq 0 ] && [ -n "$values" ]; then printf '%s\n' "$values" >> "$pricedb" printf '%s\n' "$values" fi