Unwind symlinks in the right place

This commit is contained in:
Starbeamrainbowlabs 2019-04-13 00:02:35 +01:00
parent b039c89da0
commit 1753443461
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 2 additions and 2 deletions

4
build
View File

@ -312,7 +312,7 @@ task_deploy() {
subtask_end $? "Error: Failed to create temporary directory";
subtask_begin "Unpacking release files";
execute tar -hxf "${ARCHIVE}/Air-Quality-Web.tar.gz" -C "${temp_dir}";
execute tar -xf "${ARCHIVE}/Air-Quality-Web.tar.gz" -C "${temp_dir}";
subtask_end $? "Failed to unpack release files";
subtask_begin "Removing data directory";
@ -320,7 +320,7 @@ task_deploy() {
subtask_end $?;
subtask_begin "Unwinding symlinks";
find -type l -exec bash -c 'ln -f "$(readlink -m "$0")" "$0"' {} \;
find "${temp_dir}" -type l -exec bash -c 'ln -f "$(readlink -m "$0")" "$0"' {} \;
subtask_end $?;
task_end $?;