Skip to content

Commit

Permalink
fix incompatibility with older sudo versions where --preserve-env
Browse files Browse the repository at this point in the history
… doesn't support passing a list of variables

Fix #47
  • Loading branch information
jsamr committed Apr 6, 2019
1 parent f161c55 commit 963b42a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
8 changes: 4 additions & 4 deletions bootiso
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
#
# Author: jules randolph <jules.sam.randolph@gmail.com> 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)

Expand Down Expand Up @@ -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
Expand Down
14 changes: 10 additions & 4 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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 <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 <file>` flag (@SibrenVasse)

**Bugfixes**

Expand Down

0 comments on commit 963b42a

Please sign in to comment.