mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 05:51:45 -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:
committed by
Thomas Perale
parent
207b0a2699
commit
834c844e3b
@@ -2,7 +2,6 @@
|
|||||||
#
|
#
|
||||||
# S95mpd Starts Music Player daemon.
|
# S95mpd Starts Music Player daemon.
|
||||||
#
|
#
|
||||||
# shellcheck disable=SC2317 # functions are called via variable
|
|
||||||
|
|
||||||
DAEMON="mpd"
|
DAEMON="mpd"
|
||||||
PIDFILE="/var/run/$DAEMON.pid"
|
PIDFILE="/var/run/$DAEMON.pid"
|
||||||
@@ -57,5 +56,3 @@ case "$1" in
|
|||||||
echo "Usage: $0 {start|stop|reload|restart}"
|
echo "Usage: $0 {start|stop|reload|restart}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit $?
|
|
||||||
|
|||||||
Reference in New Issue
Block a user