From 212cc3329fb37b02867a0efc33dc9ae6e8b731c2 Mon Sep 17 00:00:00 2001 From: merakor Date: Sun, 3 May 2020 16:27:46 +0000 Subject: kiss: use our own version of stat for portability purposes. FossilOrigin-Name: 44c082a4672f3de9f932cd7262e2d8b4cba2fc590750db9b1fefc38673910045 --- kiss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kiss') 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 } -- cgit v1.2.3