mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-12-22 10:25:01 +00:00
Unwind symlinks in the right place
This commit is contained in:
parent
b039c89da0
commit
1753443461
1 changed files with 2 additions and 2 deletions
4
build
4
build
|
@ -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 $?;
|
||||
|
|
Loading…
Reference in a new issue