mirror of
https://gitlab.com/ceda_ei/wish
synced 2025-12-15 22:00:06 +01:00
Revert "Replace all evals with declare"
This reverts commit 315fe0bab7.
This commit is contained in:
@@ -6,8 +6,8 @@ local fg_gradient=(000000 000000 000000 000000 000000 ffffff ffffff)
|
||||
local j=0
|
||||
for i in ${WISH_PLUGINS[@]}; do
|
||||
[[ $i =~ newline$ ]] && j=0 && continue
|
||||
declare WISH_${i^^}_BG=${gradient[$j]}
|
||||
declare WISH_${i^^}_FG=${fg_gradient[$j]}
|
||||
eval WISH_${i^^}_BG=${gradient[$j]}
|
||||
eval WISH_${i^^}_FG=${fg_gradient[$j]}
|
||||
((j++))
|
||||
if [[ $j -eq ${#gradient[@]} ]]; then
|
||||
j=0
|
||||
@@ -18,8 +18,8 @@ j=0
|
||||
for ((idx=$((${#WISH_RIGHT_PLUGINS[@]} - 1)); idx >= 0; idx--)); do
|
||||
i=${WISH_RIGHT_PLUGINS[$idx]}
|
||||
[[ $i =~ newline$ ]] && j=0 && continue
|
||||
declare WISH_${i^^}_BG=${gradient[$j]}
|
||||
declare WISH_${i^^}_FG=${fg_gradient[$j]}
|
||||
eval WISH_${i^^}_BG=${gradient[$j]}
|
||||
eval WISH_${i^^}_FG=${fg_gradient[$j]}
|
||||
((j++))
|
||||
if [[ $j -eq ${#gradient[@]} ]]; then
|
||||
j=0
|
||||
|
||||
Reference in New Issue
Block a user