Quiet sudo checking of apt
This commit is contained in:
@@ -9,14 +9,14 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Run an apt update"
|
echo "Run an apt update"
|
||||||
if sudo -l apt; then
|
if sudo -l apt > /dev/null; then
|
||||||
sudo apt update
|
sudo apt update
|
||||||
else
|
else
|
||||||
echo "Unable to run apt commands, please install manually"
|
echo "Unable to run apt commands, please install manually"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Install git and friends"
|
echo "Install git and friends"
|
||||||
if sudo -l apt; then
|
if sudo -l apt > /dev/null; then
|
||||||
sudo apt install git
|
sudo apt install git
|
||||||
else
|
else
|
||||||
echo "Unable to autoinstall git and friends, please install manually"
|
echo "Unable to autoinstall git and friends, please install manually"
|
||||||
@@ -33,7 +33,7 @@ cd "$APP_DIR"
|
|||||||
APP_DIR="$(pwd)"
|
APP_DIR="$(pwd)"
|
||||||
|
|
||||||
echo "Install zsh and friends"
|
echo "Install zsh and friends"
|
||||||
if sudo -l apt; then
|
if sudo -l apt > /dev/null; then
|
||||||
sudo apt install zsh command-not-found
|
sudo apt install zsh command-not-found
|
||||||
else
|
else
|
||||||
echo "Unable to autoinstall zsh and friends, please install manually"
|
echo "Unable to autoinstall zsh and friends, please install manually"
|
||||||
@@ -85,7 +85,7 @@ done
|
|||||||
IFS="$OLDIFS"
|
IFS="$OLDIFS"
|
||||||
|
|
||||||
echo "Install vim-nox and friends"
|
echo "Install vim-nox and friends"
|
||||||
if sudo -l apt; then
|
if sudo -l apt > /dev/null; then
|
||||||
sudo apt install vim-nox
|
sudo apt install vim-nox
|
||||||
else
|
else
|
||||||
echo "Unable to autoinstall vim-nox and friends, please install manually"
|
echo "Unable to autoinstall vim-nox and friends, please install manually"
|
||||||
|
|||||||
Reference in New Issue
Block a user