install script install git

pull/341/head
Botspot 3 years ago committed by GitHub
parent 3b269e6482
commit 10600e6e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,15 +12,29 @@ if ! command -v yad >/dev/null;then
if [ -f /usr/bin/apt ];then
sudo apt update
sudo apt install -y yad
updated=1
elif [ -f /usr/bin/pacman ];then
sudo pacman -S yad
else
error "Failed to find any package manager"
error "Failed to find any package manager to install yad."
fi
fi
#remove annoying YAD icon browser launcher
sudo rm -f /usr/share/applications/yad-icon-browser.desktop
#install git
if ! command -v git >/dev/null;then
if [ -f /usr/bin/apt ];then
#only run sudo apt update if not already run
if [ -z "$updated" ];then
sudo apt update
fi
sudo apt install -y git
else
error "Failed to find any package manager to install git."
fi
fi
#download pi-apps if folder missing
if [ -z "$DIRECTORY" ] || [ "$DIRECTORY" == "$HOME" ] || [ "$DIRECTORY" == bash ];then
DIRECTORY="$HOME/pi-apps"

Loading…
Cancel
Save