TT#9211 Avoid non-POSIX usage of echo(1) in init script

Noticed during an upgrade:

| Setting up ngcp-sems-app (1.6.0-1+0~mr4.5.3.1) ...
| -ne Sems start disabled by default file
| Setting up ngcp-prompts-pro (0.8.3.1+0~mr4.5.3.1) ...

This is caused by POSIX echo not supporting the "-e"
option, compare dash:

| $ echo -ne "Sems start disabled by default file"
| -ne Sems start disabled by default file

with e.g. bash:

| $ echo -ne "Sems start disabled by default file"
| Sems start disabled by default file$

Let's avoid the "-n" option as well though to
have a proper and full newline in package
upgrades.

Change-Id: I620da808843c0c29d8d59994c5652a3fdc3ceef0
changes/19/10719/1
Michael Prokop 9 years ago
parent efbb87f805
commit 02cba213b3

@ -21,7 +21,7 @@ fi
if test "$SEMS_RUN" = "no" ; then
echo -ne "Sems start disabled by default file"
echo "Sems start disabled by default file"
exit 0
fi

Loading…
Cancel
Save