Emonpi backup stalling - emoncms-export.sh: line 98: syntax error

Try adding “then” to the end of line 89 (and line 100).

[EDIT] Just went to do PR and found a one has already been submitted for this bugfix, now merged so please try again after an update.