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