1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 00:20:05 -07:00

kiss: move func

This commit is contained in:
Dylan Araps 2020-09-27 09:52:03 +03:00
parent 5809d0316a
commit 92ea10d562
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

24
kiss
View File

@ -16,18 +16,6 @@ die() {
exit 1
}
contains() {
_sep=${3:- }
case "${_sep}${1}${_sep}" in
*"${_sep}${2}${_sep}"*)
return 0
;;
esac
return 1
}
prompt() {
[ "$1" ] && log "$1"
@ -54,6 +42,18 @@ as_root() {
esac
}
contains() {
_sep=${3:- }
case "${_sep}${1}${_sep}" in
*"${_sep}${2}${_sep}"*)
return 0
;;
esac
return 1
}
file_owner() {
read -r _ _ user _ <<EOF
$(ls -ld "$1")