kiss: Swap to ls -l for user name

This commit is contained in:
Dylan Araps 2020-04-28 06:26:36 +03:00
parent 4e196bb09c
commit 278c222902
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
2 changed files with 15 additions and 2 deletions

7
.editorconfig Normal file
View File

@ -0,0 +1,7 @@
root = true
# Force GitHub to display tabs
# mixed with [4] spaces properly.
[kiss]
indent_style = tab
indent_size = 4

10
kiss
View File

@ -1163,7 +1163,9 @@ pkg_updates() {
# ownership of files and directories in the rare
# case that the repository is owned by a 3rd user.
(
user=$(stat -c %U "$PWD") || user=root
read -r _ _ user _ <<-EOF || user=root
$(ls -ld "$PWD")
EOF
id -u "$user" >/dev/null 2>&1 ||
user=root
@ -1339,7 +1341,11 @@ args() {
else
log "$pkg" "Need permissions to generate checksums"
user=$(stat -c %U "$repo_dir") as_root tee "$repo_dir/checksums"
read -r _ _ user _ <<-EOF || user=root
$(ls -ld "$PWD")
EOF
user=$user as_root tee "$repo_dir/checksums"
fi
}