X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fgenerator%2Fwrapdoze.sh;h=d7432835e403dedaf5ea505f3aa490ca6f1c67c2;hb=2fdca9287111298b428cce91f789ef164799afef;hp=a4062987532d5b8604e3607b7bb34ff7f7390060;hpb=01b46966dd81886d843a35e1a6960d8d07dee89e;p=feisty_meow.git diff --git a/scripts/generator/wrapdoze.sh b/scripts/generator/wrapdoze.sh index a4062987..d7432835 100755 --- a/scripts/generator/wrapdoze.sh +++ b/scripts/generator/wrapdoze.sh @@ -5,7 +5,7 @@ source $FEISTY_MEOW_SCRIPTS/core/functions.sh function dossify_and_run_commands() { # we only mess with the command line on windows... - if [ "$OS" == "Windows_NT" ]; then + if [ "$OS" != "Windows_NT" ]; then # for non windows, just run the commands straight up. $* return $? @@ -15,13 +15,12 @@ function dossify_and_run_commands() for i in "$@"; do if [[ "$i" =~ ^-[a-zA-z][/\"].* ]]; then -echo found parameter to fix... flag="${i:0:2}" filename="$(unix_to_dos_path ${i:2})" -echo "first two chars are $flag" -echo "last after that are $filename" +#echo "first two chars are $flag" +#echo "last after that are $filename" recombined="$flag$filename" -echo combined flag and file is $recombined +#echo combined flag and file is $recombined darc_commands+=("$recombined") else darc_commands+=($(unix_to_dos_path $i)) @@ -34,10 +33,11 @@ echo combined flag and file is $recombined done #temp! - echo commands are now: >>/tmp/wrapdoze.log + echo commands are now: for i in "${real_commands[@]}"; do - echo $i >>/tmp/wrapdoze.log + echo -n "$i " done + echo #end temp # now actually run the chewed command.