fix: missing flag for overwritting files with sed

This commit is contained in:
Julien Oculi 2024-05-30 18:02:01 +02:00
parent fff6cad26c
commit 01770c9810

View file

@ -18,6 +18,6 @@ do
KEY=$(echo $secret | grep -o "\w\+")
VALUE=$(echo $secret | grep -oP '\w+\s*=\s*\K.*' | tr -d "\r")
sed -r "s/\{\{\s*$KEY\s*\}\}/$VALUE/g" $file
sed -i -r "s/\{\{\s*$KEY\s*\}\}/$VALUE/g" $file
done
done