From a0d7ec544d5c2b2c2edad62fa560264ca247ac2c Mon Sep 17 00:00:00 2001 From: Jookia <166291@gmail.com> Date: Fri, 18 May 2018 13:07:16 +1000 Subject: [PATCH] osync-srv: Fix syntax errors when setting errno Two instances in the osync-srv script throw an error when setting errno to 1. In both instances errno is expanded from '$errno=1' to '0=1'. In the first instance there is invalid spacing around the equals symbol. Signed-off-by: Jookia <166291@gmail.com> --- osync-srv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osync-srv b/osync-srv index abf2581..96c577a 100755 --- a/osync-srv +++ b/osync-srv @@ -60,7 +60,7 @@ start() { echo "$prog successfully started for configuration file $cfgfile" else echo "Cannot start $prog for configuration file $cfgfile" - $errno = 1 + errno=1 fi done @@ -106,7 +106,7 @@ status() { echo "$prog instance $(basename $pfile) is running (pid $(cat $pfile))" else echo "$prog instance $pfile (pid $(cat $pfile)) is dead but pidfile exists." - $errno=1 + errno=1 fi done