Commit 64fd5457 authored by Mikhail Tergoev's avatar Mikhail Tergoev

only grep for PRETTY_NAME

parent 2e4bfdf2
......@@ -4765,12 +4765,12 @@ portwine_start_debug () {
echo "------------------------------------------------------" >> "${PORT_WINE_PATH}/PortProton.log"
if check_flatpak ; then
echo "Flatpak runtime:" >> "${PORT_WINE_PATH}/PortProton.log"
cat /etc/os-release | grep -oP 'PRETTY_NAME="\K[^"]+' >> "${PORT_WINE_PATH}/PortProton.log"
grep -oP 'PRETTY_NAME="\K[^"]+' /etc/os-release >> "${PORT_WINE_PATH}/PortProton.log"
echo "Operating system:" >> "${PORT_WINE_PATH}/PortProton.log"
cat /run/host/etc/os-release | grep -oP 'PRETTY_NAME="\K[^"]+' >> "${PORT_WINE_PATH}/PortProton.log"
grep -oP 'PRETTY_NAME="\K[^"]+' /run/host/etc/os-release >> "${PORT_WINE_PATH}/PortProton.log"
else
echo "Operating system:" >> "${PORT_WINE_PATH}/PortProton.log"
cat /etc/os-release | grep -oP 'PRETTY_NAME="\K[^"]+' >> "${PORT_WINE_PATH}/PortProton.log"
grep -oP 'PRETTY_NAME="\K[^"]+' /etc/os-release >> "${PORT_WINE_PATH}/PortProton.log"
fi
echo "--------------------------------------------------" >> "${PORT_WINE_PATH}/PortProton.log"
echo "Desktop environment:" >> "${PORT_WINE_PATH}/PortProton.log"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment