From 9a450fcb06fee6683a8fa18d48cbd5116bccef99 Mon Sep 17 00:00:00 2001 From: xiangmy21 <90919434+xiangmy21@users.noreply.github.com> Date: Sun, 23 Apr 2023 23:36:03 +0800 Subject: [PATCH] Update compile.sh --- dependency/shell/compile.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dependency/shell/compile.sh b/dependency/shell/compile.sh index 9b3cc8a..db2cac2 100644 --- a/dependency/shell/compile.sh +++ b/dependency/shell/compile.sh @@ -5,8 +5,7 @@ flag=1 bind=/usr/local/mnt while (( $i <= 4 )) do - cp -f $bind/player$i.cpp ./API/src - mv ./API/src/player$i.cpp ./API/src/AI.cpp + mv -f $bind/player$i.cpp ./API/src/AI.cpp cmake ./CMakeLists.txt && make >compile_log$i.txt 2>&1 mv ./capi $bind/capi$i # executable file if [ $? -ne 0 ]; then @@ -20,4 +19,4 @@ if [ $flag -eq 1 ]; then curl $URL -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -d '{"compile_status":"compiled"}' > $bind/curl_log.txt else curl $URL -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -d '{"compile_status":"failed"}' > $bind/curl_log.txt -fi \ No newline at end of file +fi