Away with deprecated "and" style
This commit is contained in:
parent
73dd080f91
commit
887627e130
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue