Skip to content

Commit a984fc7

Browse files
committed
Fix antibot cmake build dir not being found
The antibot build directory is still hardcodet to "build" only the server directory got a build specific hash. fyi @zan3e-3
1 parent 63abc1b commit a984fc7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/include/update/cmake.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ function cmake_refresh_teeworlds_binary() {
3333
local build_dir="$(get_cmake_build_dir)"
3434

3535
if [ -f "$CFG_GITPATH_ANTIBOT"/libantibot.so ] && \
36-
[ -f "$CFG_GITPATH_ANTIBOT"/"$build_dir"/libantibot.so ]
36+
[ -f "$CFG_GITPATH_ANTIBOT"/build/libantibot.so ]
3737
then
3838
err "Error: found libantibot.so in root and build dir of $CFG_GITPATH_ANTIBOT"
3939
err " this is ambiguous. Please delete one of the files"
4040
err ""
4141
err " $CFG_GITPATH_ANTIBOT/libantibot.so"
42-
err " $CFG_GITPATH_ANTIBOT/$build_dir/libantibot.so"
42+
err " $CFG_GITPATH_ANTIBOT/build/libantibot.so"
4343
err ""
4444
exit 1
4545
fi
4646

4747
local libantibot_path=''
4848
for libantibot_path_candidate in \
4949
"$CFG_GITPATH_ANTIBOT"/libantibot.so \
50-
"$CFG_GITPATH_ANTIBOT"/"$build_dir"/libantibot.so \
50+
"$CFG_GITPATH_ANTIBOT"/build/libantibot.so \
5151
"$CFG_GIT_PATH_MOD"/"$build_dir"/libantibot.so
5252
do
5353
if [ -f "$libantibot_path_candidate" ]

0 commit comments

Comments
 (0)