pi-apps install script install curl

pull/487/head
Botspot 3 years ago
parent d15498cb7a
commit 84ba3cc295

@ -11,6 +11,7 @@ cd $HOME
#install yad automatically
if ! command -v yad >/dev/null;then
if [ -f /usr/bin/apt ];then
sudo apt update
sudo apt install -y yad || error "Failed to install yad."
@ -24,10 +25,12 @@ 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
updated=1
fi
sudo apt install -y git || error "Failed to install git."
else
@ -35,6 +38,21 @@ if ! command -v git >/dev/null;then
fi
fi
#install curl
if ! command -v curl >/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
updated=1
fi
sudo apt install -y curl || error "Failed to install curl."
else
error "Failed to find any package manager to install curl."
fi
fi
#download pi-apps if folder missing
if [ -z "$DIRECTORY" ] || [ "$DIRECTORY" == "$HOME" ] || [ "$DIRECTORY" == bash ];then
DIRECTORY="$HOME/pi-apps"

Loading…
Cancel
Save