From f7c1f828c58f3575df002462ee1d0c2aa6533608 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Mon, 22 Mar 2021 19:13:04 +0100 Subject: [PATCH] Fixed the tar command --- scripts/deploy_ui_files.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/deploy_ui_files.sh b/scripts/deploy_ui_files.sh index 268feb9d..f2db2a70 100644 --- a/scripts/deploy_ui_files.sh +++ b/scripts/deploy_ui_files.sh @@ -29,14 +29,16 @@ unzip "$package_file" -d "$temp_dir/raw/" if [[ $? -ne 0 ]]; then rm -r "$temp_dir" &>/dev/null echo "Failed to unpack package." + exit 1 fi echo "Generating .tar.gz file from $package_file" package_file="$temp_dir/$(basename -s ".zip" "$package_file").tar.gz" -tar chvzf "$package_file" "$temp_dir"/raw/*; +tar --use-compress-program="gzip -9" -C "$temp_dir/raw/" -c . -cf "$package_file"; if [[ $? -ne 0 ]]; then rm -r "$temp_dir" echo "Failed to package package." + exit 1 fi git_hash=$(git_version "short-tag")