@@ -36,31 +36,31 @@ function add_arg() {
function build_command () {
command=""
for i in $1; do
if [ -z $command ]; then
command=$i
else
command="$command,$i"
fi;
done
}
while true; do
case "$1" in
-o)
file=$2
- add_arg "file=${f:-$(basename ${f}).aub}"
+ add_arg "file=${file:-$(basename ${file}).aub}"
shift 2
;;
-v)
add_arg "verbose=1"
shift 1
;;
-o*)
file=${1##-o}
add_arg "file=${file:-$(basename ${file}).aub}"
shift
;;
--output=*)
file=${1##--output=}
add_arg "file=${file:-$(basename ${file}).aub}"
shift