kiss: remove root_check

This commit is contained in:
Dylan Araps 2019-08-13 00:00:51 +00:00
parent cf3b58ab86
commit 23502b4732
1 changed files with 0 additions and 8 deletions

8
kiss
View File

@ -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