From 6f590d51d6a41ded4b3c753a6278d2886ae49dfd Mon Sep 17 00:00:00 2001 From: kyodev Date: Thu, 12 Oct 2017 08:44:30 +0200 Subject: [PATCH] getThunderbird 1.4.0 --- scripts/getThunderbird | 8 ++++---- scripts/getThunderbird_changelog.md | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/getThunderbird b/scripts/getThunderbird index 72e6ced..b09ec15 100755 --- a/scripts/getThunderbird +++ b/scripts/getThunderbird @@ -1,7 +1,7 @@ #!/bin/bash -version=1.3.0 -date="08/10/2017" +version=1.4.0 +date="11/10/2017" projet="simpledeb" contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/" script="getThunderbird" @@ -144,11 +144,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/getThunderbird_changelog.md b/scripts/getThunderbird_changelog.md index b6c8790..0763852 100644 --- a/scripts/getThunderbird_changelog.md +++ b/scripts/getThunderbird_changelog.md @@ -5,6 +5,10 @@ * placé ln dans /usr/local/bin au lieu de /usr/bin ? +## 1.4.0 11/10/2017 + +* fix f__sudo : fonctionnement avec sudo + ## 1.3.0 08/10/2017 * f__wget_test(): nouvelle option test, nouveau nommage fichier temp