From e513ae477ae8ca8bd14602af94c997f3b3e3be13 Mon Sep 17 00:00:00 2001 From: poka Date: Sat, 3 Oct 2020 05:29:50 +0200 Subject: [PATCH] Add -y option to apt --- explorer.sh | 2 +- g1-stats.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/explorer.sh b/explorer.sh index c86a6c8..61b8595 100755 --- a/explorer.sh +++ b/explorer.sh @@ -15,7 +15,7 @@ # Check if jq, jo and curl are installed, or install them -[[ -z $(which jq) || -z $(which jo) || -z $(which curl) ]] && sudo apt update && sudo apt install jq jo bc curl +[[ -z $(which jq) || -z $(which jo) || -z $(which curl) ]] && sudo apt update && sudo apt install jq jo bc curl -y # Path of the current script GPATH="$( cd "$(dirname "$0")" ; pwd -P )" diff --git a/g1-stats.sh b/g1-stats.sh index 1681f7f..7e83cfc 100755 --- a/g1-stats.sh +++ b/g1-stats.sh @@ -21,7 +21,7 @@ startTime=$(date +'%H:%M') day=$(date +'%y-%m-%d') dayP=$(date +'%d-%m-%y') echo -e "\n############# $day à $startTime #############\n" -[[ -z $(which jq) || -z $(which jo) || -z $(which bc) || -z $(which curl) ]] && sudo apt update && sudo apt install jq jo bc curl +[[ -z $(which jq) || -z $(which jo) || -z $(which bc) || -z $(which curl) ]] && sudo apt update && sudo apt install jq jo bc curl -y echo "Initialisation ..." if $debug; then TXBLOCKS=$(cat $GPATH/db/debug/txblocs)