Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 963b42a

Browse files
committed
fix incompatibility with older sudo versions where --preserve-env doesn't support passing a list of variables
Fix #47
1 parent f161c55 commit 963b42a

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

bootiso

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
#
55
# Author: jules randolph <jules.sam.randolph@gmail.com> https://github.com/jsamr
66
# License: MIT
7-
# Version 3.3.0
7+
# Version 3.3.1
88

99
set -o pipefail
1010
set -E
1111

12-
version="3.3.0"
12+
version="3.3.1"
1313
scriptName=$(basename "$0")
1414
bashVersion=$(echo "$BASH_VERSION" | cut -d. -f1)
1515

@@ -395,10 +395,10 @@ initPckgManager() {
395395
checkSudo() {
396396
if ((EUID != 0)); then
397397
if [[ -t 1 ]]; then
398-
sudo --preserve-env="$environementVariables" "$0" "$@"
398+
sudo --preserve-env "$0" "$@"
399399
else
400400
exec 1>output_file
401-
gksu --preserve-env="$environementVariables" "$0" "$@"
401+
gksu --preserve-env "$0" "$@"
402402
fi
403403
exit
404404
fi

changelog.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
# v3.3.1
2+
3+
**Bugfixes**
4+
5+
- 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)
6+
17
# v3.3.0
28

39
**Features**
410

5-
- check ISO hash automatically, #16
6-
- disable automatic ISO hash check with `-H, --no-hash-check` flag
7-
- exit when hash fails with `--force-hash-check` flag
8-
- explicitly set a hash file with `--hash-file <file>` flag
11+
- check ISO hash automatically, #16, (@SibrenVasse)
12+
- disable automatic ISO hash check with `-H, --no-hash-check` flag (@SibrenVasse)
13+
- exit when hash fails with `--force-hash-check` flag (@SibrenVasse)
14+
- explicitly set a hash file with `--hash-file <file>` flag (@SibrenVasse)
915

1016
**Bugfixes**
1117

0 commit comments

Comments
 (0)