From df620b77120ddeb566dab8eabd03169c0d79547b Mon Sep 17 00:00:00 2001 From: Matt Carter Date: Tue, 21 May 2019 09:03:06 -0500 Subject: [PATCH] Fix dpkg/apt commands in tools/airship script One of the first things the tools/airship utility script does is run dpkg and apt. Because these commands were not being ran with sudo, the airship script could only be ran as the root user. Adding sudo so any user can run the tools/airship script. Change-Id: Ia13321fcc7436931d82da274682bc700cf802d33 --- tools/airship | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/airship b/tools/airship index 5157a859a..488b89e8f 100755 --- a/tools/airship +++ b/tools/airship @@ -20,7 +20,7 @@ test -t 1 && test -t 0 && DEFAULT_TERM_OPTS='-it' : ${TERM_OPTS:=${DEFAULT_TERM_OPTS}} # Python YAML module required to read versions.yaml -dpkg -s python3-yaml &> /dev/null || apt -y install python3-yaml +sudo dpkg -s python3-yaml &> /dev/null || sudo apt -y install python3-yaml ENV_FILE=$(mktemp)