From 26af331ea3073e396044ff5340609b1612cb1f82 Mon Sep 17 00:00:00 2001 From: Fiona Klute Date: Sat, 6 Jun 2026 20:20:29 +0200 Subject: [PATCH] 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 Tested-by: Andreas Ziegler Signed-off-by: Marcus Hoffmann (cherry picked from commit 118ffb20b5c739c61448ac6036f38a2aca6afcbc) Signed-off-by: Thomas Perale --- package/mpd/S95mpd | 3 --- 1 file changed, 3 deletions(-) diff --git a/package/mpd/S95mpd b/package/mpd/S95mpd index ac971e04a2..e33654a501 100644 --- a/package/mpd/S95mpd +++ b/package/mpd/S95mpd @@ -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 $?