Merge "Use zypper for package install on SUSE based distros"
This commit is contained in:
commit
ff8a00725a
@ -20,8 +20,11 @@ test -t 1 && test -t 0 && DEFAULT_TERM_OPTS='-it'
|
|||||||
: ${TERM_OPTS:=${DEFAULT_TERM_OPTS}}
|
: ${TERM_OPTS:=${DEFAULT_TERM_OPTS}}
|
||||||
|
|
||||||
# Python YAML module required to read versions.yaml
|
# Python YAML module required to read versions.yaml
|
||||||
sudo dpkg -s python3-yaml &> /dev/null || sudo apt -y install python3-yaml
|
if grep -iq suse /etc/os-release; then
|
||||||
|
rpm -q python3-pyaml --quiet || zypper --non-interactive install python3-pyaml
|
||||||
|
else
|
||||||
|
dpkg -s python3-yaml &> /dev/null || apt -y install python3-yaml
|
||||||
|
fi
|
||||||
|
|
||||||
ENV_FILE=$(mktemp)
|
ENV_FILE=$(mktemp)
|
||||||
trap "{ rm -f $ENV_FILE; }" EXIT
|
trap "{ rm -f $ENV_FILE; }" EXIT
|
||||||
|
Loading…
Reference in New Issue
Block a user