forked from cohabit/server_config
fix: missing flag for overwritting files with sed
This commit is contained in:
parent
fff6cad26c
commit
01770c9810
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue