Skip to content

Commit 237c8bf

Browse files
committed
Use sudo -E in bin/setup/install-apt.bash
1 parent 58ba24b commit 237c8bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/setup/install-apt.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ git_commit
8383
echo ""
8484

8585
# Update APT repository information
86-
sudo apt update
86+
sudo -E apt update
8787
APT_UPDATE_RESULT="${?}"
8888
if [[ "${APT_UPDATE_RESULT}" != "0" ]]; then
8989
echo "Unable to update APT repository information." > "${MSG_FILE}"
9090
echo "...." >> "${REPORT_FILE}"
9191
echo "Halting." >> "${REPORT_FILE}"
92-
echo "Tried 'sudo apt update'." >> "${REPORT_FILE}"
92+
echo "Tried 'sudo -E apt update'." >> "${REPORT_FILE}"
9393
echo "Got a non-zero exit code: ${APT_RESULT}." >> "${REPORT_FILE}"
9494
echo "$(cat "${MSG_FILE}")"
9595
echo "$(cat "${REPORT_FILE}")"
@@ -102,7 +102,7 @@ else
102102
fi
103103

104104
# Install APT dependencies.
105-
sudo apt install -y \
105+
sudo -E apt install -y \
106106
qemu \
107107
binutils-arm-linux-gnueabi \
108108
gcc-arm-linux-gnueabi \

0 commit comments

Comments
 (0)