getFlashPlayer 3.16.0

This commit is contained in:
kyodev 2017-10-12 08:42:05 +02:00
parent 3f5300b254
commit c51b6b116e
2 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
version=3.15.0
date="08/10/2017"
version=3.16.0
date="11/10/2017"
projet="simpledeb"
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
script="getFlashPlayer"
@ -92,11 +92,11 @@ f__log(){ # 08/09/2017
}
# $1=cmd si $2: nb de tentatives pour s'identifier, sinon 1 tentative par défaut
f__sudo(){ # 08/10/2017
f__sudo(){ # 11/10/2017
local nb=1 sudo isudo
# sudo --shell bash équivalent su ?
if sudo -v &>/dev/null && [ $EUID -ne 0 ] ; then
sudo="sudo --shell $(which bash) "
sudo="sudo su --shell $(which bash) --preserve-environment -c "
else
sudo="su --shell $(which bash) --preserve-environment -c "
fi

View File

@ -6,6 +6,10 @@
* placé ln dans /usr/local/bin au lieu de /usr/bin ?
* flash pour chromium
## 3.16.0 11/10/2017
* fix f__sudo : fonctionnement avec sudo
## 3.15.0 08/10/2017
* f__wget_test(): nouvelle option test, nouveau nommage fichier temp