summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2016-02-19 09:24:19 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2016-02-19 09:24:19 (GMT)
commita9e5d4a12df065059deaa79dd814eeadb77174a7 (patch)
tree678e4f861211ce0eac6f7d1b01c63203442b24a9 /scripts/functions
parent8460611d5f28c9b4d8e1533238f048119a1f4a63 (diff)
functions: use 'ln -sf' for softlinks
I should have just used ln -sf when I rewrote the custom locations change. BSD based systems don't have 'cp -s', so switch to using 'ln -sf'. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions
index 8a803bf..70c1ba6 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -671,7 +671,7 @@ CT_GetCustom() {
elif [ "${component_location_type}" = "dir" ]; then
CT_DoLog EXTRA "Got '${component_location}' from custom location"
[ ! -d "${CT_SRC_DIR}/${component_name}-${component_version}" ] && \
- CT_DoExecLog DEBUG cp -as "${component_location}" \
+ CT_DoExecLog DEBUG ln -sf "${component_location}" \
"${CT_SRC_DIR}/${component_name}-${component_version}"
# Don't try to extract from source directory, it's extracted!