From 61582187e9745d8c1cff1e75fb5f91dc69edefa7 Mon Sep 17 00:00:00 2001 From: "Matthew D. Scholefield" Date: Mon, 15 Apr 2019 23:41:50 +0000 Subject: [PATCH] Fixed build.sh for precise-engine package --- build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 82dd5a6..5de481b 100755 --- a/build.sh +++ b/build.sh @@ -32,8 +32,10 @@ package_scripts() { tmp_name=$(mktemp).spec cat "precise.template.spec" | replace "%%SCRIPT%%" "$script" | replace "%%TRAIN_LIBS%%" "$train_libs" > "$tmp_name" pyinstaller -y "$tmp_name" - cp -R dist/$exe/* "dist/$combined_folder" - rm -rf "dist/$exe" "build/$exe" + if [ "$exe" != "$combined_folder" ]; then + cp -R dist/$exe/* "dist/$combined_folder" + rm -rf "dist/$exe" "build/$exe" + fi echo "$exe" >> "$completed_file" done