Disable makepkg's debug option by default

This commit is contained in:
Manuel Thalmann 2024-03-07 21:23:55 +01:00
parent 7c541727bc
commit 4411b9cd08
4 changed files with 24 additions and 1 deletions
scripts/Arch/Config/base-devel

View file

@ -0,0 +1,12 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
configFile="/etc/makepkg.conf";
pattern="^\\(OPTIONS=(.*[( ]\\)\\(debug[ )].*)\\)$";
if cat "$configFile" | grep "$pattern" > /dev/null
then
sudo sed -i "/$pattern/s/$pattern/\\1!\\2/" "$configFile"
fi;
popd > /dev/null;