dat update and minor format changes
This commit is contained in:
@@ -48,13 +48,6 @@ function echo_debug() {
|
||||
fi
|
||||
}
|
||||
|
||||
#################################################
|
||||
# Display Information message
|
||||
|
||||
function abs_diff() {
|
||||
echo $(($1 >= $2 ? $1 - $2 : $2 - $1))
|
||||
}
|
||||
|
||||
#################################################
|
||||
# Display Help
|
||||
|
||||
@@ -63,6 +56,13 @@ function display_help_and_exit() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
#################################################
|
||||
# Calculate difference
|
||||
|
||||
function abs_diff() {
|
||||
echo $(($1 >= $2 ? $1 - $2 : $2 - $1))
|
||||
}
|
||||
|
||||
#################################################
|
||||
# Program Checks
|
||||
|
||||
@@ -174,7 +174,7 @@ function check_variable_is_correct() {
|
||||
fi
|
||||
if [ "$( file --brief --mime-type "${assets_csv}" | grep --count 'text/csv' )" -ne "1" ]
|
||||
then
|
||||
echo_error "The \"assets_csv\" variable has not a valid \"text/csv\" mime type."
|
||||
echo_error "The \"assets_csv\" file has not a valid \"text/csv\" mime type."
|
||||
fi
|
||||
if [ "$( wc --lines ${assets_csv} | awk '{print $1}' )" -le "1" ]
|
||||
then
|
||||
@@ -1657,7 +1657,7 @@ function generate_show_transcript() {
|
||||
|
||||
cat "${episode_srt}" | while read this_line
|
||||
do
|
||||
if [ "$( echo "${this_line}" | grep -c --perl-regexp '^[0-9]+$' )" -eq "1" ]
|
||||
if [ "$( echo "${this_line}" | grep --count --perl-regexp '^[0-9]+$' )" -eq "1" ]
|
||||
then
|
||||
echo "${count}"
|
||||
count=$((count+1))
|
||||
|
Reference in New Issue
Block a user