misc: Use apt install of apt-get where possible
The future is now!
This commit is contained in:
@@ -15,6 +15,7 @@ GO=`command -v go 2>/dev/null`
|
||||
YUM=`command -v yum 2>/dev/null`
|
||||
DNF=`command -v dnf 2>/dev/null`
|
||||
APT=`command -v apt-get 2>/dev/null`
|
||||
NEWAPT=`command -v apt 2>/dev/null`
|
||||
BREW=`command -v brew 2>/dev/null`
|
||||
PACMAN=`command -v pacman 2>/dev/null`
|
||||
|
||||
@@ -23,6 +24,11 @@ if [ -x "$DNF" ]; then
|
||||
YUM=$DNF
|
||||
fi
|
||||
|
||||
# if APT is available use it
|
||||
if [ -x "$NEWAPT" ]; then
|
||||
APT=$NEWAPT
|
||||
fi
|
||||
|
||||
if [ -z "$YUM" -a -z "$APT" -a -z "$BREW" -a -z "$PACMAN" ]; then
|
||||
echo "The package managers can't be found."
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user