From 312b1461a5eb2d84ca326c4c7976e929f85138fe Mon Sep 17 00:00:00 2001 From: deicidus <> Date: Fri, 22 Jul 2022 13:44:26 -0700 Subject: [PATCH] added grep install to bootstrap on debian/pi --- bootstrap.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index 768a96e..5e1b564 100755 --- a/bootstrap.sh +++ b/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