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
1 changed files with 12 additions and 12 deletions

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")