Skip to content

Commit 6d79448

Browse files
committed
MIES_GlobalStringAndVariableAccess.ipf: fix return in mac code
The function `ExecuteGitForMIESVersion()` contained MacOSX specific code with an invalid break statement. This one doesn't compile, because it wasn't used inside a loop or switch statement and is now replaced with an abort according to the function documentation.
1 parent 29730e8 commit 6d79448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/MIES/MIES_GlobalStringAndVariableAccess.ipf

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static Function ExecuteGitForMIESVersion(string gitPathOrName, string gitDir, st
304304
if(V_flag)
305305
printf "Missing functional git executable, please install the \"Xcode commandline tools\" via \"xcode-select --install\" in Terminal.\r"
306306
ControlWindowToFront()
307-
break
307+
abort
308308
endif
309309

310310
sprintf cmd, "do shell script \"%s --git-dir='%s' describe --always --tags --match 'Release_*' > '%sversion.txt' 2>&1\"", gitPathOrName, gitDir, topDir

0 commit comments

Comments
 (0)