diff options
author | Antonin Dach | 2021-04-11 18:04:45 +0200 |
---|---|---|
committer | Antonin Dach | 2021-04-11 18:04:45 +0200 |
commit | 386e35308b348bda211b21a8923c7a21477b9ab2 (patch) | |
tree | 6f76a2d684d9ab2bbb73a9d67ad766dcd8b9417b | |
parent | ec87ce4b5150e3bdad603801ddb3046aa2a8b123 (diff) | |
download | aur-librewolf-comment-out-cfg-hook.tar.gz |
Add action to defaultPref as well
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rwxr-xr-x | librewolf-cfg-comment-out-values.sh | 4 | ||||
-rwxr-xr-x | librewolf-cfg-uncomment-out-values.sh | 4 |
4 files changed, 8 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = librewolf-comment-out-cfg-hook pkgdesc = Comment out custom cfg values via pacman hook pkgver = 1 - pkgrel = 4 + pkgrel = 5 url = https://git.sr.ht/~freed00m/librewolf-comment-out-cfg-hook arch = x86_64 arch = aarch64 @@ -2,7 +2,7 @@ pkgname=librewolf-comment-out-cfg-hook pkgver=1 -pkgrel=4 +pkgrel=5 pkgdesc='Comment out custom cfg values via pacman hook' arch=(x86_64 aarch64) url='https://git.sr.ht/~freed00m/librewolf-comment-out-cfg-hook' diff --git a/librewolf-cfg-comment-out-values.sh b/librewolf-cfg-comment-out-values.sh index ec4c3e03fead..86c8b4920dfb 100755 --- a/librewolf-cfg-comment-out-values.sh +++ b/librewolf-cfg-comment-out-values.sh @@ -11,7 +11,9 @@ touch $POLICY_MOD_FILE while IFS= read -r line do - sed -i "s/^lockPref(\"$line\"/\/\/lockPref(\"$line\"/g" $CFG_FILE + sed -i -e "s/^lockPref(\"$line\"/\/\/lockPref(\"$line\"/g" \ + -e "s/^defaultPref(\"$line\"/\/\/defaultPref(\"$line\"/g" \ + $CFG_FILE done < $CFG_MOD_FILE diff --git a/librewolf-cfg-uncomment-out-values.sh b/librewolf-cfg-uncomment-out-values.sh index 1d18f64cc4b6..92721af5a41d 100755 --- a/librewolf-cfg-uncomment-out-values.sh +++ b/librewolf-cfg-uncomment-out-values.sh @@ -8,7 +8,9 @@ CFG_MOD_FILE=/usr/lib/librewolf/librewolf.cfg-comment-out-list while IFS= read -r line do - sed -i "s/\/\/lockPref(\"$line\"/lockPref(\"$line\"/g" $CFG_FILE + sed -i -e "s/\/\/lockPref(\"$line\"/lockPref(\"$line\"/g" \ + -e "s/\/\/defaultPref(\"$line\"/defaultPref(\"$line\"/g" \ + $CFG_FILE done < $CFG_MOD_FILE while IFS= read -r line |