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:
commit
897de830c7
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue