mirror of
https://github.com/aclist/dztui.git
synced 2025-04-05 03:53:01 +02:00
fix: array syntax
This commit is contained in:
parent
6b669e5c21
commit
0fdc132873
1 changed files with 2 additions and 1 deletions
|
@ -930,7 +930,7 @@ remove_from_favs(){
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [[ ${#ip_list} -gt 0 ]]; then
|
if [[ ${#ip_list[@]} -gt 0 ]]; then
|
||||||
readarray -t ip_list < <(printf "%s\n" "${ip_list[@]}")
|
readarray -t ip_list < <(printf "%s\n" "${ip_list[@]}")
|
||||||
fi
|
fi
|
||||||
update_config
|
update_config
|
||||||
|
@ -938,6 +938,7 @@ remove_from_favs(){
|
||||||
local cache="$(< "$_cache_my_servers")"
|
local cache="$(< "$_cache_my_servers")"
|
||||||
<<< "$cache" grep -v -P "$r$" > $_cache_my_servers
|
<<< "$cache" grep -v -P "$r$" > $_cache_my_servers
|
||||||
logger INFO "Removed the record $record from saved servers"
|
logger INFO "Removed the record $record from saved servers"
|
||||||
|
echo "Removed $record from saved servers"
|
||||||
return 90
|
return 90
|
||||||
}
|
}
|
||||||
update_favs_from_table(){
|
update_favs_from_table(){
|
||||||
|
|
Loading…
Reference in a new issue