From 8ed95ffc05504e68fe31df1dd05c7807e94979c0 Mon Sep 17 00:00:00 2001 From: pvincent Date: Wed, 4 Aug 2021 15:32:48 +0400 Subject: [PATCH] non-interactive --- README.md | 4 ++-- src/main | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8908130..bee0980 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ debian-gnome ============ configuration pour un bureau Gnome propre et efficace. -utilisé lors des Instalalis dispensés par Libre.re +utilisé lors des Instalalis dispensées par Libre.re install one-liner ----------------- -`curl -s https://git.artcode.re/pvincent/debian-gnome/raw/master/src/main | bash` \ No newline at end of file +`wget -q https://git.artcode.re/pvincent/debian-gnome/raw/master/src/main -O /tmp/main | bash /tmp/main` \ No newline at end of file diff --git a/src/main b/src/main index 9e6825b..8e7338d 100755 --- a/src/main +++ b/src/main @@ -72,6 +72,7 @@ fi echo "# required packages" echo "===================" +sudo export DEBIAN_FRONTEND=noninteractive for package in ${REQUIRED_PACKAGES[@]}; do runVoid dpkg-query --status $package if [ $runVoidError -ne 0 ] ; then @@ -80,6 +81,7 @@ for package in ${REQUIRED_PACKAGES[@]}; do echo "DONE" fi done +sudo unset DEBIAN_FRONTEND echo "## remove hplip annoyance" echo "=========================" @@ -203,7 +205,7 @@ EXTENSIONS=( for extension in "${EXTENSIONS[@]}"; do if [[ ! -d $HOME/.local/share/gnome-shell/extensions/$extension ]];then - gnome-extensions-cli install $extension + gnome-extensions-cli --backend file install $extension if [[ -d $HOME/.local/share/gnome-shell/extensions/$extension/schemas ]]; then sudo cp $HOME/.local/share/gnome-shell/extensions/$extension/schemas/*.gschema.xml /usr/share/glib-2.0/schemas/ sudo glib-compile-schemas /usr/share/glib-2.0/schemas/