File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,14 +12,15 @@ get_cmake_build_dir() {
1212}
1313
1414function cmake_refresh_teeworlds_binary() {
15- if [ ! -f " $CFG_GIT_PATH_MOD /build/$CFG_COMPILED_BIN " ]
15+ local build_dir=" $( get_cmake_build_dir) "
16+ if [ ! -f " $CFG_GIT_PATH_MOD /$build_dir /$CFG_COMPILED_BIN " ]
1617 then
1718 err " Error: binary not found try ./update.sh"
18- err " $CFG_GIT_PATH_MOD /build /$CFG_COMPILED_BIN "
19+ err " $CFG_GIT_PATH_MOD /$build_dir /$CFG_COMPILED_BIN "
1920 return
2021 fi
2122 cp \
22- " $CFG_GIT_PATH_MOD /build /$CFG_COMPILED_BIN " \
23+ " $CFG_GIT_PATH_MOD /$build_dir /$CFG_COMPILED_BIN " \
2324 " ${SCRIPT_ROOT} /${CFG_BIN} "
2425 local libantibot_runtime_path=" ${SCRIPT_ROOT} /bin/libantibot.so"
2526 if [ -f " $libantibot_runtime_path " ]
@@ -30,7 +31,6 @@ function cmake_refresh_teeworlds_binary() {
3031 if [ " $CFG_GITPATH_ANTIBOT " != " " ]
3132 then
3233 log " refreshing antibot binary ..."
33- local build_dir=" $( get_cmake_build_dir) "
3434
3535 if [ -f " $CFG_GITPATH_ANTIBOT " /libantibot.so ] && \
3636 [ -f " $CFG_GITPATH_ANTIBOT " /build/libantibot.so ]
You can’t perform that action at this time.
0 commit comments