From 17534434615ad67d79101c4771ee00c8f5056608 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 13 Apr 2019 00:02:35 +0100 Subject: [PATCH] Unwind symlinks in the right place --- build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build b/build index 0aea583..648f41c 100755 --- a/build +++ b/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 $?;