mirror of https://framagit.org/kyodev/kyopages.git
getIp 1.12.0
This commit is contained in:
parent
c51b6b116e
commit
dae7d31a1d
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
version=1.11.0
|
||||
date="08/10/2017"
|
||||
version=1.12.0
|
||||
date="11/10/2017"
|
||||
projet="simpledeb"
|
||||
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
||||
script="getIp"
|
||||
|
@ -102,11 +102,11 @@ f__requis(){ # 22/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
|
||||
|
|
|
@ -8,6 +8,10 @@
|
|||
* adresses Mac
|
||||
---
|
||||
|
||||
## 1.12.0 11/10/2017
|
||||
|
||||
* fix f__sudo : fonctionnement avec sudo
|
||||
|
||||
## 1.11.0 08/10/2017
|
||||
|
||||
* f__wget_test(): nouvelle option test, nouveau nommage fichier temp
|
||||
|
|
Loading…
Reference in New Issue