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:
@@ -100,6 +100,11 @@ remove_kernel()
|
|||||||
if [ "$1" = "list" ]; then
|
if [ "$1" = "list" ]; then
|
||||||
list_kernels
|
list_kernels
|
||||||
elif [ "$1" = "rm" ]; then
|
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
|
if [ -z "$2" ]; then
|
||||||
usage
|
usage
|
||||||
elif [ "$2" = "all" ]; then
|
elif [ "$2" = "all" ]; then
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Template file for 'base-files'
|
# Template file for 'base-files'
|
||||||
pkgname=base-files
|
pkgname=base-files
|
||||||
version=0.139
|
version=0.139
|
||||||
revision=7
|
revision=8
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
depends="xbps-triggers"
|
depends="xbps-triggers"
|
||||||
short_desc="Void Linux base system files"
|
short_desc="Void Linux base system files"
|
||||||
|
|||||||
Reference in New Issue
Block a user