1
0
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:
Dylan Araps 2019-08-13 00:00:51 +00:00
parent cf3b58ab86
commit 23502b4732

8
kiss
View File

@ -822,14 +822,6 @@ pkg_clean() {
(set +f; rm -f "$cac_dir/c-"* "$cac_dir/m-"* "$cac_dir/rm") (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() { args() {
# Parse script arguments manually. POSIX 'sh' has no 'getopts' # Parse script arguments manually. POSIX 'sh' has no 'getopts'
# or equivalent built in. This is rather easy to do in our case # or equivalent built in. This is rather easy to do in our case