We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3620fc commit 7d9faf3Copy full SHA for 7d9faf3
utilities_common/auto_techsupport_helper.py
@@ -72,8 +72,10 @@
72
73
# Explicity Pass this to the subprocess invoking techsupport
74
ENV_VAR = os.environ
75
-PATH_PREV = ENV_VAR["PATH"] if "PATH" in ENV_VAR else ""
76
-ENV_VAR["PATH"] = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:" + PATH_PREV
+if ('CROSS_BUILD_ENVIRON' not in ENV_VAR) or (ENV_VAR['CROSS_BUILD_ENVIRON'] != 'y'):
+ # Add native system directories to PATH variable only if it is not cross-compilation build
77
+ PATH_PREV = ENV_VAR["PATH"] if "PATH" in ENV_VAR else ""
78
+ ENV_VAR["PATH"] = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:" + PATH_PREV
79
80
# Techsupport Exit Codes
81
EXT_LOCKFAIL = 2
0 commit comments