You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Misc/externals.sh
+14-8Lines changed: 14 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -36,15 +36,20 @@ else
36
36
fi
37
37
38
38
functionfailed() {
39
-
local error=${1:-Undefined error}
40
-
echo"Failed: $error">&2
41
-
exit 1
39
+
local error=${1:-Undefined error}
40
+
local command_identifier=$2
41
+
echo"Failed: $error">&2
42
+
if [[ $command_identifier=='download_node_alpine_arm64' ]];then
43
+
echo"Node for Alpine ARM64 not found in blob storage. If the version of Node (for tasks execution) has been updated, it should be built for Alpine ARM64 and uploaded to blob storage. Read documentation about the agent release for more info."
44
+
fi
45
+
exit 1
42
46
}
43
47
44
48
functioncheckRC() {
45
49
local rc=$?
50
+
local command_identifier=$2
46
51
if [ $rc-ne 0 ];then
47
-
failed "${1} failed with return code $rc"
52
+
failed "${1} failed with return code $rc"$command_identifier
48
53
fi
49
54
}
50
55
@@ -56,6 +61,7 @@ function acquireExternalTool() {
56
61
# of the nested TEE-CLC-14.0.4 directory are moved up one directory, and then the empty directory
57
62
# TEE-CLC-14.0.4 is removed.
58
63
local dont_uncompress=$4
64
+
local tool_name=$5
59
65
60
66
# Extract the portion of the URL after the protocol. E.g. vstsagenttools.blob.core.windows.net/tools/pdbstr/1/pdbstr.zip
61
67
local relative_url="${download_source#*://}"
@@ -84,7 +90,7 @@ function acquireExternalTool() {
84
90
# -S Show error. With -s, make curl show errors when they occur
0 commit comments