From: kiwixz Date: Mon, 16 Jan 2023 17:58:58 +0000 (+0100) Subject: add a dash in front of MAKEFLAGS with single letter options X-Git-Tag: xonotic-v0.8.6~7^2 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=f8f9e28a99ecf788f8fff183f142b4482e26a0ae add a dash in front of MAKEFLAGS with single letter options --- 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