Browse Source

added grep install to bootstrap on debian/pi

main
deicidus 2 years ago
parent
commit
312b1461a5
  1. 9
      bootstrap.sh

9
bootstrap.sh

@ -1,6 +1,6 @@
# This bash script installs ao-cli and its prerequisites: Node.JS (npm, nvm, node) # This bash script installs ao-cli and its prerequisites: Node.JS (npm, nvm, node)
# This script is hosted in the ao-cli repository, so ao-cli can always be installed with: # This script is hosted in the ao-cli repository, so ao-cli can always be installed with:
# curl -L https://git.coalitionofinvisiblecolleges.org/autonomousorganization/ao-cli/raw/branch/main/bootstrap.js | sh # curl -L http://git.coalitionofinvisiblecolleges.org/autonomousorganization/ao-cli/raw/branch/main/bootstrap.sh | sh
# detect OS # detect OS
if [ -f "/etc/debian_version" ]; then if [ -f "/etc/debian_version" ]; then
@ -67,6 +67,13 @@ if [ "$DISTRO" = "debian" ]; then
sudo apt install -y wget sudo apt install -y wget
fi fi
# install grep
if [ $(dpkg-query -W -f='${Status}' git 2>/dev/null | grep -c "ok installed") -eq 1 ]; then
echo grep already installed
else
sudo apt install -y grep
fi
# install git # install git
if [ $(dpkg-query -W -f='${Status}' git 2>/dev/null | grep -c "ok installed") -eq 1 ]; then if [ $(dpkg-query -W -f='${Status}' git 2>/dev/null | grep -c "ok installed") -eq 1 ]; then
echo git already installed echo git already installed

Loading…
Cancel
Save