diff --git a/scripts/getIp b/scripts/getIp index 173bb86..3e9258e 100755 --- a/scripts/getIp +++ b/scripts/getIp @@ -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 diff --git a/scripts/getIp_changelog.md b/scripts/getIp_changelog.md index ebff9f1..7e9d7a4 100644 --- a/scripts/getIp_changelog.md +++ b/scripts/getIp_changelog.md @@ -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