Disable makepkg's debug
option by default
This commit is contained in:
parent
7c541727bc
commit
4411b9cd08
4 changed files with 24 additions and 1 deletions
scripts/Arch/Config/base-devel
12
scripts/Arch/Config/base-devel/install.sh
Executable file
12
scripts/Arch/Config/base-devel/install.sh
Executable 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;
|
Loading…
Add table
Add a link
Reference in a new issue