Fix sed expression

This commit is contained in:
Laura Hausmann 2023-03-15 18:04:17 +01:00
parent aaf7ee00da
commit f6d8dcda5a
Signed by untrusted user: zotan
GPG key ID: D044E84C5BE01605

View file

@ -324,7 +324,7 @@ basic_postinstall(){
cat "$f" | grep "\[Match\]" --after-context 999 | sed -z 's/\n\n.*/\n/g' | grep -q "MACAddress="
if [[ $? -eq 0 ]]; then
# Remove Name= match clause
sed -z -i '/^Name=.*$/d' "$f"
sed -i '/^Name=.*$/d' "$f"
fi
done