mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 00:20:05 -07:00
kiss: remove shellcheck warning from file_owner
This commit is contained in:
parent
2fee3837ee
commit
d9c8725169
9
kiss
9
kiss
@ -51,12 +51,11 @@ as_root() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
file_owner() {
|
file_owner() {
|
||||||
# shellcheck disable=2046
|
read -r _ _ user _ <<EOF
|
||||||
set -- $(ls -ld "$1")
|
$(ls -ld "$1")
|
||||||
|
EOF
|
||||||
|
|
||||||
user=${3:-root}
|
id -u "${user:=root}" >/dev/null 2>&1 || user=root
|
||||||
|
|
||||||
id -u "$user" >/dev/null 2>&1 || user=root
|
|
||||||
}
|
}
|
||||||
|
|
||||||
run_hook() {
|
run_hook() {
|
||||||
|
Loading…
Reference in New Issue
Block a user