aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYulong Pei <yulong.pei@intel.com>2019-07-29 04:08:04 +0800
committerYulong Pei <yulong.pei@intel.com>2019-07-29 04:08:04 +0800
commit0e853acbf246dde97bf8b376cffca1aefdf1aa7b (patch)
tree053ea7f91d5de679fd333a55fd24d74adf1a5487
parentf7f3d8bcaf06a41ab481fd32463694ee6c9ae98c (diff)
make sudo to preserve user existing environment variables
Change-Id: I83470b059b9ca59bb3725f1ebef6718adf8f91ae Signed-off-by: Yulong Pei <yulong.pei@intel.com>
-rw-r--r--resources/libraries/bash/function/artifacts.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/libraries/bash/function/artifacts.sh b/resources/libraries/bash/function/artifacts.sh
index fe755af9d9..35fade98af 100644
--- a/resources/libraries/bash/function/artifacts.sh
+++ b/resources/libraries/bash/function/artifacts.sh
@@ -67,7 +67,7 @@ function download_ubuntu_artifacts () {
set -exuo pipefail
- curl -s "${REPO_URL}"/script.deb.sh | sudo bash || {
+ curl -s "${REPO_URL}"/script.deb.sh | sudo -E bash || {
die "Packagecloud FD.io repo fetch failed."
}
# If version is set we will add suffix.
@@ -142,7 +142,7 @@ function download_centos_artifacts () {
set -exuo pipefail
- curl -s "${REPO_URL}"/script.rpm.sh | sudo bash || {
+ curl -s "${REPO_URL}"/script.rpm.sh | sudo -E bash || {
die "Packagecloud FD.io repo fetch failed."
}
# If version is set we will add suffix.
@@ -177,7 +177,7 @@ function download_opensuse_artifacts () {
set -exuo pipefail
- curl -s "${REPO_URL}"/script.rpm.sh | sudo bash || {
+ curl -s "${REPO_URL}"/script.rpm.sh | sudo -E bash || {
die "Packagecloud FD.io repo fetch failed."
}
# If version is set we will add suffix.