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 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
if [ -f "/etc/debian_version" ]; then
@ -66,6 +66,13 @@ if [ "$DISTRO" = "debian" ]; then
else
sudo apt install -y wget
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
if [ $(dpkg-query -W -f='${Status}' git 2>/dev/null | grep -c "ok installed") -eq 1 ]; then

Loading…
Cancel
Save