mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[fix] Export instead of declaring dynamic variables
This commit is contained in:
@@ -232,7 +232,7 @@ check_pass_match() {
|
|||||||
local var=$3
|
local var=$3
|
||||||
|
|
||||||
if [ "$pass" = "$confirm_pass" ]; then
|
if [ "$pass" = "$confirm_pass" ]; then
|
||||||
declare "$var=yes"
|
export "$var=yes"
|
||||||
else
|
else
|
||||||
whiptail_passwords_dont_match
|
whiptail_passwords_dont_match
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ whiptail_enable_components() {
|
|||||||
|
|
||||||
# Set any variables to 1 if they exist in COMPONENTS
|
# Set any variables to 1 if they exist in COMPONENTS
|
||||||
for component in "${COMPONENTS[@]}"; do
|
for component in "${COMPONENTS[@]}"; do
|
||||||
declare "$component=1"
|
export "$component=1"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user