From 4e0533cb2496b2ed2ddcda6963d661cd3b29833f Mon Sep 17 00:00:00 2001 From: Francois B Date: Fri, 4 May 2018 01:15:38 +0200 Subject: [PATCH] menu mode opt added to dpkg fct --- core_functions.sh | 5 ++++- install_functions.sh | 19 ++++++++++++------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/core_functions.sh b/core_functions.sh index 8211204..3aa711a 100644 --- a/core_functions.sh +++ b/core_functions.sh @@ -296,7 +296,7 @@ function addRepo () { # # install package manually -# input : url of package, package name +# input : url of package, package name, menu mode # function installPackageDpkg () { printf "[PKG] Installing $2 from $1 " @@ -307,6 +307,9 @@ function installPackageDpkg () { sudo apt-get install -fy &>> $logFile ret_code=$? retCode $ret_code + if [ "$3" == "yes" ]; then + pressKey + fi } # diff --git a/install_functions.sh b/install_functions.sh index 3e95f1e..d4c5dec 100644 --- a/install_functions.sh +++ b/install_functions.sh @@ -89,7 +89,8 @@ function installInternetMenu () { # function installViber () { installPackageDpkg http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb \ - viber.deb + viber.deb \ + no } # @@ -97,7 +98,8 @@ function installViber () { # function installViberMenu () { installPackageDpkg http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb \ - viber.deb + viber.deb \ + yes } # @@ -105,7 +107,8 @@ function installViberMenu () { # function installFranz () { installPackageDpkg https://github.com/meetfranz/franz/releases/download/v5.0.0-beta.17/franz_5.0.0-beta.17_amd64.deb \ - franz.deb + franz.deb \ + no } # @@ -113,7 +116,8 @@ function installFranz () { # function installFranzMenu () { installPackageDpkg https://github.com/meetfranz/franz/releases/download/v5.0.0-beta.17/franz_5.0.0-beta.17_amd64.deb \ - franz.deb + franz.deb \ + yes } # @@ -942,7 +946,8 @@ function installCADMenu () { # function installTeamViewer13 () { installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \ - teamviewer13.deb + teamviewer13.deb \ + no } # @@ -950,8 +955,8 @@ function installTeamViewer13 () { # function installTeamViewer13Menu () { installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \ - teamviewer13.deb - pressKey + teamviewer13.deb \ + yes } #