mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 12:44:10 -09:00
package/mpd/S95mpd: avoid unnecessary exit
The exit status of the last command automatically becomes the exit
status of the script. And if there is no explicit exit shellcheck
accepts unused functions (here: start/stop/... called via variable).
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Tested-by: Andreas Ziegler <br025@umbiko.net>
Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
(cherry picked from commit 118ffb20b5)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
parent
4d20d7f1ca
commit
26af331ea3
1 changed files with 0 additions and 3 deletions
|
|
@ -2,7 +2,6 @@
|
|||
#
|
||||
# S95mpd Starts Music Player daemon.
|
||||
#
|
||||
# shellcheck disable=SC2317 # functions are called via variable
|
||||
|
||||
DAEMON="mpd"
|
||||
PIDFILE="/var/run/$DAEMON.pid"
|
||||
|
|
@ -57,5 +56,3 @@ case "$1" in
|
|||
echo "Usage: $0 {start|stop|reload|restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
|
|
|
|||
Loading…
Reference in a new issue