${version} ${location}= NexusKeywords__Detect_Version_To_Pull ${component}
# TODO: Use RequestsLibrary and String instead of curl and bash utilities?
${url}= BuiltIn.Set_Variable ${urlbase}/${location}/${artifact}/${version}
- ${namepart}= SSHLibrary.Execute_Command curl ${url}/maven-metadata.xml | grep value | head -n 1 | cut -d '>' -f 2 | cut -d '<' -f 1
+ ${namepart}= SSHLibrary.Execute_Command curl -L ${url}/maven-metadata.xml | grep value | head -n 1 | cut -d '>' -f 2 | cut -d '<' -f 1
BuiltIn.Log ${namepart}
${length}= BuiltIn.Get_Length ${namepart}
${namepart}= BuiltIn.Set_Variable_If ${length} == 0 ${version} ${namepart}
Compose_Dilemma_Filepath
[Arguments] ${default_path} ${specific_path}
[Documentation] Query active SSH connection, return specific path if it exists else default path.
- ${out} ${rc}= SSHLibrary.Execute_Command ls -lA ${specific_path} &2>1 return_rc=True
+ ${out} ${rc}= SSHLibrary.Execute_Command ls -lA ${specific_path} 2>&1 return_rc=True
BuiltIn.Return_From_Keyword_If ${rc} == 0 ${specific_path}
BuiltIn.Return_From_Keyword ${default_path}