summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Mannens2019-08-10 19:55:53 +1000
committerJake Mannens2019-08-10 19:55:53 +1000
commit2a97a84e24ec19df0b56ae6080a8f1588c5746cf (patch)
tree8b653aee480c934982f0e491f82322f6e8cbc571
parent076eb88a993e60d217a611c01532efc249a194dd (diff)
downloadaur-2a97a84e24ec19df0b56ae6080a8f1588c5746cf.tar.gz
Corrected bug which would leave newlines in /etc/sudoers after removal.
-rw-r--r--PKGBUILD2
-rw-r--r--powertool.install2
2 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 736defa1eb14..a1144b26e60e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Contributor: Jake Mannens <jakem_5@hotmail.com>
pkgname=powertool
pkgver=0.1
-pkgrel=1
+pkgrel=2
pkgdesc="A simple power management script"
arch=('any')
url="https://gitlab.com/plasmicplexus/powertool"
diff --git a/powertool.install b/powertool.install
index 32f004776bf2..e5ddf74a3437 100644
--- a/powertool.install
+++ b/powertool.install
@@ -5,7 +5,7 @@ post_install() {
}
post_remove() {
- sed -i '/[ ]\?%sudo ALL=(ALL) NOPASSWD: \/usr\/bin\/powertool/d' /etc/sudoers
+ sed -i 'N;N;s/\n*%sudo ALL=(ALL) NOPASSWD: \/usr\/bin\/powertool//' /etc/sudoers
}
# vim: ts=4 sts=4 sw=4 et