mirror of
https://gitlab.com/ceda_ei/wish
synced 2025-12-15 22:00:06 +01:00
Replace tr with parameter expansion.
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
|
||||
eval WISH_$(echo $i | tr '[:lower:]' '[:upper:]')_BG=${gradient[$j]}
|
||||
eval WISH_$(echo $i | tr '[:lower:]' '[:upper:]')_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