menu mode opt added to dpkg fct

This commit is contained in:
Francois B 2018-05-04 01:15:38 +02:00
parent 6ff952b2e2
commit 4e0533cb24
2 changed files with 16 additions and 8 deletions

View file

@ -296,7 +296,7 @@ function addRepo () {
# #
# install package manually # install package manually
# input : url of package, package name # input : url of package, package name, menu mode
# #
function installPackageDpkg () { function installPackageDpkg () {
printf "[PKG] Installing $2 from $1 " printf "[PKG] Installing $2 from $1 "
@ -307,6 +307,9 @@ function installPackageDpkg () {
sudo apt-get install -fy &>> $logFile sudo apt-get install -fy &>> $logFile
ret_code=$? ret_code=$?
retCode $ret_code retCode $ret_code
if [ "$3" == "yes" ]; then
pressKey
fi
} }
# #

View file

@ -89,7 +89,8 @@ function installInternetMenu () {
# #
function installViber () { function installViber () {
installPackageDpkg http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb \ installPackageDpkg http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb \
viber.deb viber.deb \
no
} }
# #
@ -97,7 +98,8 @@ function installViber () {
# #
function installViberMenu () { function installViberMenu () {
installPackageDpkg http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb \ installPackageDpkg http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb \
viber.deb viber.deb \
yes
} }
# #
@ -105,7 +107,8 @@ function installViberMenu () {
# #
function installFranz () { function installFranz () {
installPackageDpkg https://github.com/meetfranz/franz/releases/download/v5.0.0-beta.17/franz_5.0.0-beta.17_amd64.deb \ 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 () { function installFranzMenu () {
installPackageDpkg https://github.com/meetfranz/franz/releases/download/v5.0.0-beta.17/franz_5.0.0-beta.17_amd64.deb \ 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 () { function installTeamViewer13 () {
installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \ installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \
teamviewer13.deb teamviewer13.deb \
no
} }
# #
@ -950,8 +955,8 @@ function installTeamViewer13 () {
# #
function installTeamViewer13Menu () { function installTeamViewer13Menu () {
installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \ installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \
teamviewer13.deb teamviewer13.deb \
pressKey yes
} }
# #