On branch master

Changes to be committed:
modified:   hash-files
	Added functionality to create file list
	Added cleanup function and trap call
hash-each-file
Mike Holloway 3 years ago
parent 1e9b217612
commit eb629b225c
  1. 18
      hash-files

@ -17,7 +17,7 @@ echo "=== Get list of files in $Working_Directory. ===
=================================================="
IFS=$'\n'
for file in $(find $Working_Fullpath -maxdepth 1 -type f); do
list_of_files+=$file
list_of_files+=( $file )
done
unset IFS
}
@ -37,12 +37,28 @@ echo "=== Write data to a .csv file. ===
===================================="
}
cleanup () {
:
}
## Main
#######
trap cleanup EXIT
echo "Main Start"
create_list_of_files
for file in ${list_of_files[@]}; do
echo $file
done
write_log
hash_files
write_log
create_csv
write_log
write_data
write_log
cleanup
#while $list_of_files >=1; do
#done

Loading…
Cancel
Save