diff --git a/hash-files b/hash-files index f5c7148..d56c2e1 100755 --- a/hash-files +++ b/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