Commit b3823e59 authored by Yuanle Song's avatar Yuanle Song
Browse files

bugfix: use /bin/echo instead of built-in echo.

parent 783c8384
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -40,7 +40,9 @@ log() {
# Usage: err [MESSAGE..]
err() {
	logger -t ddclient_http -p user.err "$@"
	echo -e "$@" | mail -s "ddclient-http Error" ${EMAIL:-root@localhost}
	# Note: echo (the built-in command in dash) does not support -e.
	# using external /bin/echo command.
	/bin/echo -e "$@" | mail -s "ddclient-http Error" ${EMAIL:-root@localhost}
}

# Usage: fatal_err [MESSAGE..]