Bug#1100359: wolf4sdl script uses return when it should use exit
Wakko Warner
wakko at animx.eu.org
Wed Mar 12 23:22:01 GMT 2025
Package: wolf4sdl
Version: 20230117-1
Severity: minor
Tags: patch
$ wolf4sdl
Could not find any supported data files in /usr/share/games/wolf3d.
/usr/games/wolf4sdl: line 59: return: can only `return' from a function or sourced script
$
This patch should fix this.
--- a/wolf4sdl 2025-03-12 19:20:29.355602756 -0400
+++ b/wolf4sdl 2025-03-12 19:20:36.531529560 -0400
@@ -56,7 +56,7 @@
if [ -z "$ENGINE" ]
then
echo "Could not find any supported data files in $DATADIR."
- return 1
+ exit 1
else
exec "$ENGINE" "$@"
fi
-- System Information:
Debian Release: 10.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.8.2 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/bash
Init: sysvinit (via /sbin/init)
Versions of packages wolf4sdl depends on:
ii libc6 2.38-11
ii libgcc-s1 14.2.0-17
ii libsdl2-2.0-0 2.0.14+dfsg2-3
ii libsdl2-mixer-2.0-0 2.8.1+dfsg-2
ii libstdc++6 14.2.0-17
Versions of packages wolf4sdl recommends:
pn game-data-packager <none>
wolf4sdl suggests no packages.
-- no debconf information
More information about the Pkg-games-devel
mailing list