mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 00:20:05 -07:00
kiss: remove root_check
This commit is contained in:
parent
cf3b58ab86
commit
23502b4732
8
kiss
8
kiss
@ -822,14 +822,6 @@ pkg_clean() {
|
||||
(set +f; rm -f "$cac_dir/c-"* "$cac_dir/m-"* "$cac_dir/rm")
|
||||
}
|
||||
|
||||
root_check() {
|
||||
# Ensure that the user has write permissions to '$KISS_ROOT'.
|
||||
# When this variable is empty, a value of '/' is assumed.
|
||||
[ -w "$KISS_ROOT/" ] || \
|
||||
die "No write permissions to '${KISS_ROOT:-/}'." \
|
||||
"You may need to run 'kiss' as root."
|
||||
}
|
||||
|
||||
args() {
|
||||
# Parse script arguments manually. POSIX 'sh' has no 'getopts'
|
||||
# or equivalent built in. This is rather easy to do in our case
|
||||
|
Loading…
Reference in New Issue
Block a user