- # only stat the file for the user and group name if not set on the
- # command line
- : ${username:=$(zpm stat -f '%U' $path)}
- : ${groupname:=$(zpm stat -f '%G' $path)}
+ # only stat the file for items not set on the command line
+ mode=${clmode:-$(zpm stat -f '%a' $path)}
+ username=${cluser:-$(zpm stat -f '%U' $path)}
+ groupname=${clgroup:-$(zpm stat -f '%G' $path)}
+ mtime=${clmtime:-$(zpm stat -f '%y' $path)}
+ filetype=${cltype:-$(zpm stat -l -f '%t' "$path")}