From a9e5d4a12df065059deaa79dd814eeadb77174a7 Mon Sep 17 00:00:00 2001 From: Bryan Hundven Date: Fri, 19 Feb 2016 01:24:19 -0800 Subject: 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 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! -- cgit v0.10.2-6-g49f6