fix(script): Fix var reference (#1)
This commit is contained in:
parent
85a7fb66be
commit
ed15631ad2
@ -111,7 +111,6 @@ function trim_globally_snappable_datasets () {
|
||||
}
|
||||
|
||||
function write_pkg_list_oneline () {
|
||||
local unabridged_pkg_list_oneline
|
||||
if [[ "${severity}" == 'imp' ]]; then
|
||||
for pkg in "${important_pkgs_in_transaction[@]}"; do
|
||||
if [[ "${unabridged_pkg_list_oneline}" ]]; then
|
||||
@ -175,7 +174,7 @@ function trim_pkg_list_oneline () {
|
||||
fi
|
||||
|
||||
local shorter_pkg_list
|
||||
shorter_pkg_list="${pkg_list_oneline}"
|
||||
shorter_pkg_list="${unabridged_pkg_list_oneline}"
|
||||
while [[ "${#shorter_pkg_list}" -gt "${pkgs_list_max_length}" ]]; do
|
||||
shorter_pkg_list="${shorter_pkg_list%,*}"
|
||||
if ! grep -Piq ',' <<<"${shorter_pkg_list}"; then
|
||||
@ -258,7 +257,7 @@ function main () {
|
||||
snappable_datasets=("${globally_snappable_datasets}")
|
||||
fi
|
||||
|
||||
local pkg_list_oneline
|
||||
local unabridged_pkg_list_oneline
|
||||
write_pkg_list_oneline
|
||||
|
||||
local date_string max_zfs_snapshot_name_length max_dataset_name_length
|
||||
|
Loading…
x
Reference in New Issue
Block a user