Browse Source

Unwind symlinks in the right place

pull/35/head
Starbeamrainbowlabs 4 years ago
parent
commit
1753443461
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 4
      build

4
build

@ -312,7 +312,7 @@ task_deploy() { @@ -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() { @@ -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 $?;

Loading…
Cancel
Save