Skip to content

Commit

Permalink
functions: use 'ln -sf' for softlinks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bhundven committed Feb 19, 2016
1 parent 8460611 commit a9e5d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/functions
Expand Up @@ -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!
Expand Down

0 comments on commit a9e5d4a

Please sign in to comment.