summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrimi2018-04-14 14:10:53 +0200
committergrimi2018-04-14 14:10:53 +0200
commit491f79497e5d3d3597563cf78861a729bc07bfdc (patch)
tree304a079fd3f7c4c839e51e1215cf427acfffaf11
parentb745e120e581097983d5a7e5ed014325552753f6 (diff)
downloadaur-491f79497e5d3d3597563cf78861a729bc07bfdc.tar.gz
Upstream: 0.3.9.2, fixed root user checking
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--mime-archpkg.sh2
3 files changed, 5 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 399d58690be..766ccddf0c3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = mime-archpkg
pkgdesc = mime type for archlinux packages
- pkgver = 0.3.9.1
+ pkgver = 0.3.9.2
pkgrel = 1
url = http://www.archlinux.org
install = mime-archpkg.install
@@ -31,7 +31,7 @@ pkgbase = mime-archpkg
source = Papirus.svgz
source = Emerald.svgz
sha256sums = e3fc45b1121fa845a245c115704715ec0b6a17860a507202cc5e1b02d01c797b
- sha256sums = d78f347395a71c76938acc94a1c28f0a356635e2c30379590c6118895ff5f83d
+ sha256sums = eb942ad2f00cf95229d59a71462b49fe98ad08eb59b0a826087608f222b8da3b
sha256sums = fa24289460397891c692d4a13c27b76065075b27153685ce9adf2890f41936db
sha256sums = 6d2ee985ad7ae820d3b9d4d6016c56749ccbbe2aa2649f08794d5efeca32f05a
sha256sums = d0c45afb226e1dd956972990c312ccffcda4f284c720d2463c0c09b06d23a509
diff --git a/PKGBUILD b/PKGBUILD
index 0674e99369f..d96260f0303 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Contributor: grimi <grimi at poczta dot fm>
pkgname=mime-archpkg
-pkgver=0.3.9.1
+pkgver=0.3.9.2
pkgrel=1
pkgdesc="mime type for archlinux packages"
arch=('any')
@@ -12,7 +12,7 @@ install=${pkgname}.install
source=(${pkgname}.{xml,sh} {install,update,remove}.hook hook-script.sh
{hicolor,gnome,Tango,oxygen,nuoveXT2,Faenza,Faience,NITRUX,Numix,breeze,FaenzaFlattr2-Zephyr,elementary,Paper,Papirus,Emerald}.svgz)
sha256sums=('e3fc45b1121fa845a245c115704715ec0b6a17860a507202cc5e1b02d01c797b'
- 'd78f347395a71c76938acc94a1c28f0a356635e2c30379590c6118895ff5f83d'
+ 'eb942ad2f00cf95229d59a71462b49fe98ad08eb59b0a826087608f222b8da3b'
'fa24289460397891c692d4a13c27b76065075b27153685ce9adf2890f41936db'
'6d2ee985ad7ae820d3b9d4d6016c56749ccbbe2aa2649f08794d5efeca32f05a'
'd0c45afb226e1dd956972990c312ccffcda4f284c720d2463c0c09b06d23a509'
diff --git a/mime-archpkg.sh b/mime-archpkg.sh
index cfd035133e2..6ea58b3be14 100644
--- a/mime-archpkg.sh
+++ b/mime-archpkg.sh
@@ -153,7 +153,7 @@ case "$1" in
-d) MODE=remove ;;
esac
-if [[ $MODE != "usage" && $USER != "root" ]]; then
+if [[ $MODE != "usage" && $(whoami) != "root" ]]; then
echo "root privileges needed!"
exit 1
fi