base-files: Make vkpurge check for root privileges when using rm option
This commit is contained in:
parent
6bb03f2006
commit
7b7558b362
2 changed files with 6 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue