summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-02 04:56:58 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-02 04:56:58 (EDT)
commitc856188beb3615ba61ce75743d1a36d0349536ff (patch)
treeded8dc3396ccff00e87a324d65b680b5c59e95aa /tools
parente204e64f7cd1113fcb24c25016ae1bfe82f2df7b (diff)
parent356192221ee08c117270637d7a41b708579ac446 (diff)
Merge branch 'master' of ssh://git.proteanos.com/opkbuild/opkbuild
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mtime.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/mtime.sh b/tools/mtime.sh
index c2f9dfa..7207f9e 100755
--- a/tools/mtime.sh
+++ b/tools/mtime.sh
@@ -23,14 +23,19 @@ get_mtime()
{
local file="${1}"
shift 1
+ local mode=
+ local links=
+ local owner=
+ local group=
+ local size=
local m=
local d=
local y=
local now_m=
local now_y=
- read m d y <<-EOF
- $(LC_ALL=POSIX ls -l "${file}" | cut -d ' ' -f 6-8)
+ read -r mode links owner group size m d y <<-EOF
+ $(LC_ALL=POSIX ls -l "${file}")
EOF
case "${m}" in
'Jan') m=1;; 'Feb') m=2;; 'Mar') m=3;; 'Apr') m=4;;