diff --git a/artifact_git_download.sh b/artifact_git_download.sh index 07de958..a424157 100755 --- a/artifact_git_download.sh +++ b/artifact_git_download.sh @@ -417,9 +417,15 @@ install_lib() { return 1 fi - # Custom directory relative to config file directory - local config_dir=$(dirname "$(realpath "${config_file}")") - lib_dir="$config_dir/$expanded_into" + # Check if expanded path is absolute or relative + if [[ "$expanded_into" == /* ]]; then + # Absolute path - use as-is + lib_dir="$expanded_into" + else + # Relative path - make relative to config file directory + local config_dir=$(dirname "$(realpath "${config_file}")") + lib_dir="$config_dir/$expanded_into" + fi else # Use global .arty/libs for libraries without custom 'into' lib_dir="$ARTY_LIBS_DIR/$lib_name"