From 527de836e8b7217145ccbc2bc27c7bc87e3dc7f6 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Fri, 3 Nov 2023 12:49:48 +0100 Subject: foreign: Only resolve symlinks on user request --- CC/foreign/shell/EXPRESSIONS | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'CC/foreign/shell/EXPRESSIONS') diff --git a/CC/foreign/shell/EXPRESSIONS b/CC/foreign/shell/EXPRESSIONS index be6f797..3836388 100644 --- a/CC/foreign/shell/EXPRESSIONS +++ b/CC/foreign/shell/EXPRESSIONS @@ -19,6 +19,7 @@ , "BUILD_POSITION_INDEPENDENT" , "TIMEOUT_SCALE" , "expand_exec" + , "resolve_symlinks" ] , "imports": { "artifacts": ["", "field_artifacts"] @@ -287,9 +288,13 @@ , ["(", "set --", "cd ./work"] , {"type": "var", "name": "cmds"} , [")"] - , [ "mv install install_with_symlinks" - , "cp -rL install_with_symlinks install" - ] + , { "type": "if" + , "cond": {"type": "var", "name": "resolve_symlinks"} + , "then": + [ "mv install install_with_symlinks" + , "cp -rL install_with_symlinks install >copy.log 2>&1 || (echo 'ERROR: symlink resolve failed with:' && cat copy.log && exit 1)" + ] + } ] } } -- cgit v1.2.3