Add -y option to apt
This commit is contained in:
parent
26d42e19e0
commit
e513ae477a
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
|
|
||||||
# Check if jq, jo and curl are installed, or install them
|
# 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
|
# Path of the current script
|
||||||
GPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
GPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||||
|
|
|
@ -21,7 +21,7 @@ startTime=$(date +'%H:%M')
|
||||||
day=$(date +'%y-%m-%d')
|
day=$(date +'%y-%m-%d')
|
||||||
dayP=$(date +'%d-%m-%y')
|
dayP=$(date +'%d-%m-%y')
|
||||||
echo -e "\n############# $day à $startTime #############\n"
|
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 ..."
|
echo "Initialisation ..."
|
||||||
if $debug; then
|
if $debug; then
|
||||||
TXBLOCKS=$(cat $GPATH/db/debug/txblocs)
|
TXBLOCKS=$(cat $GPATH/db/debug/txblocs)
|
||||||
|
|
Loading…
Reference in New Issue