aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/init.d/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index f71954a9..c888e022 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -251,7 +251,7 @@ pidofproc() {
for p in $line ; do
[ -z "${p//[0-9]/}" -a -d /proc/$p ] && pid="$pid $p"
done
- if [ -n "${pid-:}" ] ; then
+ if [ -n "${pid:-}" ] ; then
echo $pid
return 0
fi