From c856188beb3615ba61ce75743d1a36d0349536ff Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 02 Apr 2019 04:56:58 -0400 Subject: Merge branch 'master' of ssh://git.proteanos.com/opkbuild/opkbuild --- (limited to 'tools') 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;; -- cgit v0.9.1