use long option name

This commit is contained in:
Patrick Schleizer 2024-07-26 08:13:33 -04:00
parent 19f131c742
commit 95722d6d79
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -80,7 +80,7 @@ output_stat(){
declare -a arr
local file_name_from_stat stat_output stat_output_newlined
if ! stat_output="$(stat -c "%a${delimiter}%U${delimiter}%G${delimiter}%n${delimiter}" "${file_name}")"; then
if ! stat_output="$(stat --format="%a${delimiter}%U${delimiter}%G${delimiter}%n${delimiter}" "${file_name}")"; then
log error "Failed to run 'stat' on file: '${file_name}'!" >&2
return 1
fi