Fix sed expression

This commit is contained in:
Laura Hausmann 2023-03-13 04:41:38 +01:00
parent 65b3f24156
commit 0e6a9e5eac
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 's/Name=.*?\n//g' "$f"
sed -z -i '/^Name=.*$/d' "$f"
fi
done