From 0449ff362882dcd399c7d65ec8a40f8f0763b3ca Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Wed, 1 Mar 2017 06:54:50 -0600 Subject: [PATCH] change addtopackage to use zpm stat --- zpm-addtopackage | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zpm-addtopackage b/zpm-addtopackage index f096ea2..19db69b 100755 --- a/zpm-addtopackage +++ b/zpm-addtopackage @@ -39,12 +39,12 @@ else fi for path in $*; do - mtime=$(stat -c '%Y' $path) - uid=$(stat -c '%u' $path) - gid=$(stat -c '%g' $path) - username=$(stat -c '%U' $path) - groupname=$(stat -c '%G' $path) - mode=$(stat -c '%a' $path) + mtime=$(zpm stat -t '%y' $path) + uid=$(zpm stat -t '%u' $path) + gid=$(zpm stat -t '%g' $path) + username=$(zpm stat -t '%U' $path) + groupname=$(zpm stat -t '%G' $path) + mode=$(zpm stat -t '%a' $path) # strip off leading slashes rpath=$(echo "$path" | sed -e 's|^/*||') -- 2.40.0