aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-03 16:27:46 +0000
committermerakor <cem@ckyln.com>2020-05-03 16:27:46 +0000
commit212cc3329fb37b02867a0efc33dc9ae6e8b731c2 (patch)
tree8a1f13cce6aa795444ea4331751f4fa87884d8ee /kiss
parent08a64b4ed7409014e848fde529905b906f86b3cd (diff)
downloadcpt-212cc3329fb37b02867a0efc33dc9ae6e8b731c2.tar.gz
kiss: use our own version of stat for portability purposes.
FossilOrigin-Name: 44c082a4672f3de9f932cd7262e2d8b4cba2fc590750db9b1fefc38673910045
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss4
1 files changed, 2 insertions, 2 deletions
diff --git a/kiss b/kiss
index af3af96..7613121 100755
--- a/kiss
+++ b/kiss
@@ -1167,7 +1167,7 @@ pkg_fetch() {
# 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
+ user=$(kiss-stat "$PWD") || user=root
id -u "$user" >/dev/null 2>&1 ||
user=root
@@ -1353,7 +1353,7 @@ args() {
else
log "$pkg" "Need permissions to generate checksums"
- user=$(stat -c %U "$repo_dir") as_root tee "$repo_dir/checksums"
+ user=$(kiss-stat "$repo_dir") as_root tee "$repo_dir/checksums"
fi
}