mb-setvar fix

master
Daniel Napora 2022-05-18 21:43:29 +02:00
parent 1330ff1a4f
commit 935acf4911
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ search=$(echo $1|cut -d= -f1)
if [[ $search =~ "bottom_img" ]]; then if [[ $search =~ "bottom_img" ]]; then
sed -i /^"$search="/d $FILE sed -i /^"$search="/d $FILE
fi fi
if grep -Rq $search $FILE if grep -Rq $search= $FILE
then #found then #found
sed -i s/^"$search=".*$/"$1"/ $FILE sed -i s/^"$search=".*$/"$1"/ $FILE
#sed -i s/^"$search".*$/"$1"/ $FILE #sed -i s/^"$search".*$/"$1"/ $FILE