mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-02-02 07:45:01 -05:00
output
This commit is contained in:
parent
05504b9ab2
commit
d144f68d1a
@ -91,7 +91,12 @@ output_stat(){
|
|||||||
readarray -t arr <<< "${stat_output_newlined}"
|
readarray -t arr <<< "${stat_output_newlined}"
|
||||||
|
|
||||||
if test "${#arr[@]}" = 0; then
|
if test "${#arr[@]}" = 0; then
|
||||||
log error "Array is empty. Stat output: '${stat_output}', line: '${line}'" >&2
|
log error "Array is empty.
|
||||||
|
File name: '${file_name}'
|
||||||
|
Stat output: '${stat_output}'
|
||||||
|
stat_output_newlined: '${stat_output_newlined}'
|
||||||
|
line: '${line}'
|
||||||
|
" >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -102,10 +107,11 @@ output_stat(){
|
|||||||
|
|
||||||
if [ ! "$file_name" = "$file_name_from_stat" ]; then
|
if [ ! "$file_name" = "$file_name_from_stat" ]; then
|
||||||
log error "\
|
log error "\
|
||||||
function ${FUNCNAME[1]}:
|
|
||||||
File name is different from file name received from stat:
|
File name is different from file name received from stat:
|
||||||
File name '${file_name}'
|
File name: '${file_name}'
|
||||||
File name from stat: '${file_name_from_stat}'" >&2
|
File name from stat: '${file_name_from_stat}'
|
||||||
|
line: '${line}'
|
||||||
|
" >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user