Away with deprecated "and" style

This commit is contained in:
Midgard 2020-12-23 23:39:04 +01:00
parent 73dd080f91
commit 887627e130
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -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