From f8f9e28a99ecf788f8fff183f142b4482e26a0ae Mon Sep 17 00:00:00 2001 From: kiwixz Date: Mon, 16 Jan 2023 18:58:58 +0100 Subject: [PATCH] add a dash in front of MAKEFLAGS with single letter options --- misc/tools/all/xonotic.subr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/tools/all/xonotic.subr b/misc/tools/all/xonotic.subr index 3acd42e5..0f65ac26 100644 --- a/misc/tools/all/xonotic.subr +++ b/misc/tools/all/xonotic.subr @@ -134,6 +134,8 @@ case "$cmd" in if [ -n "$WE_HATE_OUR_USERS" ]; then MAKEFLAGS="$MAKEFLAGS DP_MAKE_TARGET=mingw" fi + elif echo $MAKEFLAGS | head -c1 | grep -qv -; then # MAKEFLAGS starts with a single letter option + MAKEFLAGS=-$(echo $MAKEFLAGS) # echo here and above will trim whitespaces fi if [ -n "$WE_HATE_OUR_USERS" ]; then -- 2.39.2