Skip to content

Commit

Permalink
take the first match
Browse files Browse the repository at this point in the history
otherwise we may end up with a multi-line command, and that does not work
  • Loading branch information
totaam committed Mar 11, 2024
1 parent 75d3608 commit 0fed808
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packaging/MSWindows/MINGW_BUILD.sh
Expand Up @@ -210,8 +210,8 @@ if [ "${DO_SERVICE}" == "1" ]; then
RC="${VKIT_BIN_DIR}\\$B\\rc.exe"
if [ ! -e "$MC" ]; then
#try to find it in a versionned subdir:
MC=`find "${VKIT_BIN_DIR}" -name "mc.exe" | grep "$B/"`
RC=`find "${VKIT_BIN_DIR}" -name "rc.exe" | grep "$B/"`
MC=`find "${VKIT_BIN_DIR}" -name "mc.exe" | grep "$B/" | head -n 1`
RC=`find "${VKIT_BIN_DIR}" -name "rc.exe" | grep "$B/" | head -n 1`
fi
if [ -e "$MC" ]; then
echo " using SDK $V $B found in:"
Expand All @@ -232,7 +232,7 @@ if [ "${DO_SERVICE}" == "1" ]; then
VSDIR="$PF\\Microsoft Visual Studio\\$VSV\\BuildTools\\VC\\Tools\\MSVC"
if [ -d "${VSDIR}" ]; then
for B in $ARCH_DIRS; do
LINK=`find "$VSDIR" -name "link.exe" | grep "$B/$B"`
LINK=`find "$VSDIR" -name "link.exe" | grep "$B/$B" | head -n 1`
if [ -e "${LINK}" ]; then
break 3
fi
Expand Down

0 comments on commit 0fed808

Please sign in to comment.