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
This commit is contained in:
Matt Carter 2019-05-21 09:03:06 -05:00
parent 137b927fad
commit df620b7712

View File

@ -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)