From 36f239b789710e050955bdeb2adc5d69b1d8cb5e Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Wed, 17 Mar 2021 20:27:47 +0100 Subject: [PATCH] Fixed build script --- scripts/travis/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/travis/build.sh b/scripts/travis/build.sh index 67369ad7..4506b75d 100644 --- a/scripts/travis/build.sh +++ b/scripts/travis/build.sh @@ -155,7 +155,7 @@ source ./scripts/install_dependencies.sh echo "---------- Web client ----------" function move_target_file() { - file_name=$(ls -1t | grep -E "^TeaWeb-.*\.zip$" | head -n 1) + file_name=$(ls -1t dist-package | grep -E "^TeaWeb-.*\.zip$" | head -n 1) if [[ -z "$file_name" ]]; then handle_failure -1 "Failed to find target file" fi @@ -166,7 +166,7 @@ function move_target_file() { echo "Removing old packed file located at $target_file" rm "${target_file}" && handle_failure -1 "Failed to remove target file" fi - mv "${file_name}" "${target_file}" + mv "dist-package/${file_name}" "${target_file}" echo "Moved target file to $target_file" }