X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Ffiles%2Fspacem.sh;h=b73a68c5a15e583fc5ee098179e103127206e030;hb=8ed08d7d44f80edb3067d1880593491f14692f18;hp=fb06d8c5a605d4c8ddcb7d2cdd6bf891d484c495;hpb=1991dc82396dc856df2e668e5b2cdd08be1fbcb7;p=feisty_meow.git diff --git a/scripts/files/spacem.sh b/scripts/files/spacem.sh index fb06d8c5..b73a68c5 100644 --- a/scripts/files/spacem.sh +++ b/scripts/files/spacem.sh @@ -9,7 +9,7 @@ function spacem_out() continue fi - # first we will capture the output of the character replacement operation for reporting. + # we capture the output of the character replacement operation for reporting. # this is done first since some filenames cannot be properly renamed in perl (e.g. if they # have pipe characters apparently). intermediate_name="$(bash "$FEISTY_MEOW_SCRIPTS/files/replace_spaces_with_underscores.sh" "$arg")" @@ -23,9 +23,9 @@ function spacem_out() saw_intermediate_result=1 fi - # first we rename the file to be lower case. + # here we rename the file to be lower case. actual_file="$(echo $intermediate_name | sed -e "s/'\([^']*\)'/\1/")" - final_name="$(perl $FEISTY_MEOW_SCRIPTS/files/renlower.pl "$actual_file")" + final_name="$(perl "$FEISTY_MEOW_SCRIPTS/files/renlower.pl" "$actual_file")" local saw_final_result=0 if [ -z "$final_name" ]; then final_name="$intermediate_name" @@ -33,8 +33,6 @@ function spacem_out() final_name="$(echo $final_name | sed -e 's/.*=> //' )" saw_final_result=1 fi -#echo intermed=$saw_intermediate_result -#echo final=$saw_final_result if [[ $saw_intermediate_result != 0 || $saw_final_result != 0 ]]; then # printout the combined operation results. @@ -49,6 +47,6 @@ if [[ $0 =~ .*spacem\.sh.* ]]; then source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" exit_on_error "sourcing the feisty meow environment" spacem_out "${@}" - exit_on_error "running spacem_out on a list: $*" + exit_on_error "running spacem_out on a list: ${@}" fi