99d610ca29018d6b04c6d9c5e946d134abb48784
[feisty_meow.git] / scripts / generator / wrapdoze.sh
1 #!/bin/bash
2
3 source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
4
5 declare -a commands=()
6
7 for i in "$@"; do
8   # we only mess with the command line on windows.
9   if [ "$OS" == "Windows_NT" ]; then
10     commands+=($(msys_to_dos_path $i))
11   else
12     commands+=("$i")
13   fi
14 done
15
16 #  echo commands are now:
17 #  for i in "${commands[@]}"; do
18 #    echo $i
19 #  done
20
21 # now actually run the possibly chewed command.
22 "${commands[@]}"
23
24