This commit is contained in:
Santiago Lo Coco 2022-01-29 16:38:57 -03:00
parent 9c491c00b3
commit 7a95d7ab5b
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ grubSetUp() {
saveVar() {
[ ! -f "calsais.vars" ] && touch calsais.vars
if ! grep "$1" calsais.vars; then
if ! grep -q "$1" calsais.vars; then
echo "$1=$2" >> calsais.vars
else
sed -i "s|$1=.*|$1=$2|" calsais.vars