Fix malformed BASH command in ComposeDilemmaFilePath
[integration/test.git] / csit / libraries / NexusKeywords.robot
index 6ca0b9ea0138f91b8947dd920f66d5fb200218ce..5a6ed2c43ab0f0f555a7bde96edb4574cc824d8c 100644 (file)
@@ -80,7 +80,7 @@ Deploy_Artifact
     ${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}
@@ -110,7 +110,7 @@ Deploy_Test_Tool
 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}