From 963b42a73315c2c5b06fdf0281e1a604b4aba926 Mon Sep 17 00:00:00 2001 From: Jules Randolph Date: Sat, 6 Apr 2019 11:24:13 +0200 Subject: [PATCH] fix incompatibility with older `sudo` versions where `--preserve-env` doesn't support passing a list of variables Fix #47 --- bootiso | 8 ++++---- changelog.md | 14 ++++++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/bootiso b/bootiso index 863a0fe..a2d8444 100755 --- a/bootiso +++ b/bootiso @@ -4,12 +4,12 @@ # # Author: jules randolph https://github.com/jsamr # License: MIT -# Version 3.3.0 +# Version 3.3.1 set -o pipefail set -E -version="3.3.0" +version="3.3.1" scriptName=$(basename "$0") bashVersion=$(echo "$BASH_VERSION" | cut -d. -f1) @@ -395,10 +395,10 @@ initPckgManager() { checkSudo() { if ((EUID != 0)); then if [[ -t 1 ]]; then - sudo --preserve-env="$environementVariables" "$0" "$@" + sudo --preserve-env "$0" "$@" else exec 1>output_file - gksu --preserve-env="$environementVariables" "$0" "$@" + gksu --preserve-env "$0" "$@" fi exit fi diff --git a/changelog.md b/changelog.md index a5c18f9..0cb2e9b 100644 --- a/changelog.md +++ b/changelog.md @@ -1,11 +1,17 @@ +# v3.3.1 + +**Bugfixes** + +- fix incompatibility with older `sudo` versions where `--preserve-env` doesn't support passing a list of variables, [#47](https://github.com/jsamr/bootiso/issues/47) + # v3.3.0 **Features** -- check ISO hash automatically, #16 -- disable automatic ISO hash check with `-H, --no-hash-check` flag -- exit when hash fails with `--force-hash-check` flag -- explicitly set a hash file with `--hash-file ` flag +- check ISO hash automatically, #16, (@SibrenVasse) +- disable automatic ISO hash check with `-H, --no-hash-check` flag (@SibrenVasse) +- exit when hash fails with `--force-hash-check` flag (@SibrenVasse) +- explicitly set a hash file with `--hash-file ` flag (@SibrenVasse) **Bugfixes**