Merge pull request #7114 from ColdPhoenix00/vkpurge-root

base-files: Make vkpurge check for root privileges when using rm option
This commit is contained in:
Enno Boland 2017-07-31 13:05:13 +02:00 committed by GitHub
commit 897de830c7
2 changed files with 6 additions and 1 deletions

View File

@ -100,6 +100,11 @@ remove_kernel()
if [ "$1" = "list" ]; then
list_kernels
elif [ "$1" = "rm" ]; then
if [ "$(id -u)" -ne 0 ]; then
echo "You have to run this script as root!"
exit 1
fi
if [ -z "$2" ]; then
usage
elif [ "$2" = "all" ]; then

View File

@ -1,7 +1,7 @@
# Template file for 'base-files'
pkgname=base-files
version=0.139
revision=7
revision=8
bootstrap=yes
depends="xbps-triggers"
short_desc="Void Linux base system files"