Browse Source

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
changes/00/660400/2
Matt Carter 3 years ago
parent
commit
df620b7712
  1. 2
      tools/airship

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

Loading…
Cancel
Save