diff --git a/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/dvrescue.sh b/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/dvrescue.sh index 3dd5b7ac..945bcae4 100644 --- a/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/dvrescue.sh +++ b/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/dvrescue.sh @@ -1,31 +1,31 @@ -# store arguments in a special array -args=("$@") -# get number of elements -ELEMENTS=${#args[@]} - -# echo each element in array -# for loop - -for (( i=0;i<$ELEMENTS;i++)); do - # echo "${args[${i}]}" - if [[ ${args[${i}]} == /cygdrive* ]]; then - path=$(cygpath -w ${args[${i}]}) - # echo "original path: ${args[${i}]}, updated path: $path" - args[${i}]=$path - fi - if [[ ${args[${i}]} == /tmp* ]]; then - path=$(cygpath -w ${args[${i}]}) - # echo "original path: ${args[${i}]}, updated path: $path" - args[${i}]=$path - fi - - args[${i}]="${args[${i}]}" -done - -echo ${args[@]} > dvrescue.args -dvrescue ${args[@]} - -#set "${args[@]}" - -#echo $@ > dvrescue.args +# store arguments in a special array +args=("$@") +# get number of elements +ELEMENTS=${#args[@]} + +# echo each element in array +# for loop + +for (( i=0;i<$ELEMENTS;i++)); do + # echo "${args[${i}]}" + if [[ ${args[${i}]} == /cygdrive* ]]; then + path=$(cygpath -w ${args[${i}]}) + # echo "original path: ${args[${i}]}, updated path: $path" + args[${i}]=$path + fi + if [[ ${args[${i}]} == /tmp* ]]; then + path=$(cygpath -w ${args[${i}]}) + # echo "original path: ${args[${i}]}, updated path: $path" + args[${i}]=$path + fi + + args[${i}]="${args[${i}]}" +done + +echo ${args[@]} > dvrescue.args +dvrescue "${args[@]}" + +#set "${args[@]}" + +#echo $@ > dvrescue.args #dvrescue $@ \ No newline at end of file diff --git a/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/ffmpeg.sh b/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/ffmpeg.sh index d6e93ea1..cda3e67c 100644 --- a/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/ffmpeg.sh +++ b/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/ffmpeg.sh @@ -29,7 +29,7 @@ for (( i=0;i<$ELEMENTS;i++)); do done echo ${args[@]} > ffmpeg.args -ffmpeg ${args[@]} +ffmpeg "${args[@]}" #set "${args[@]}" diff --git a/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/mediainfo.sh b/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/mediainfo.sh index 3d827622..7e28888c 100644 --- a/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/mediainfo.sh +++ b/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/mediainfo.sh @@ -1,34 +1,34 @@ -# store arguments in a special array -args=("$@") - -echo $@ > mediainfo.args.orig - -# get number of elements -ELEMENTS=${#args[@]} - -# echo each element in array -# for loop - -for (( i=0;i<$ELEMENTS;i++)); do - # echo "${args[${i}]}" - if [[ ${args[${i}]} == /cygdrive* ]]; then - path=$(cygpath -w ${args[${i}]}) - # echo "original path: ${args[${i}]}, updated path: $path" - args[${i}]=$path - fi - if [[ ${args[${i}]} == /tmp* ]]; then - path=$(cygpath -w ${args[${i}]}) - # echo "original path: ${args[${i}]}, updated path: $path" - args[${i}]=$path - fi - - args[${i}]="${args[${i}]}" -done - -echo ${args[@]} > mediainfo.args -mediainfo ${args[@]} - -#set "${args[@]}" - -#echo $@ > mediainfo.args +# store arguments in a special array +args=("$@") + +echo $@ > mediainfo.args.orig + +# get number of elements +ELEMENTS=${#args[@]} + +# echo each element in array +# for loop + +for (( i=0;i<$ELEMENTS;i++)); do + # echo "${args[${i}]}" + if [[ ${args[${i}]} == /cygdrive* ]]; then + path=$(cygpath -w ${args[${i}]}) + # echo "original path: ${args[${i}]}, updated path: $path" + args[${i}]=$path + fi + if [[ ${args[${i}]} == /tmp* ]]; then + path=$(cygpath -w ${args[${i}]}) + # echo "original path: ${args[${i}]}, updated path: $path" + args[${i}]=$path + fi + + args[${i}]="${args[${i}]}" +done + +echo ${args[@]} > mediainfo.args +mediainfo "${args[@]}" + +#set "${args[@]}" + +#echo $@ > mediainfo.args #mediainfo $@ \ No newline at end of file diff --git a/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/xml.sh b/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/xml.sh index 52cc8a45..a1085d3d 100644 --- a/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/xml.sh +++ b/Source/GUI/dvrescue/dvrescue/windows-tools/scripts/xml.sh @@ -1,35 +1,35 @@ -# store arguments in a special array -args=("$@") -# get number of elements -ELEMENTS=${#args[@]} - -# echo "$@" > args.txt - -# echo each element in array -# for loop - -for (( i=0;i<$ELEMENTS;i++)); do - # echo "${args[${i}]}" - if [[ ${args[${i}]} == /cygdrive* ]]; then - path=$(cygpath -w ${args[${i}]}) - # echo "original path: ${args[${i}]}, updated path: $path" - args[${i}]=$path - fi - if [[ ${args[${i}]} == /tmp* ]]; then - path=$(cygpath -w ${args[${i}]}) - # echo "original path: ${args[${i}]}, updated path: $path" - args[${i}]=$path - fi - - args[${i}]="${args[${i}]}" -done - -echo ${args[@]} > xml.args -xml ${args[@]} - -# set "${args[@]}" - -# echo $@ > xml.args - -# OUTPUT=$(xml $@) +# store arguments in a special array +args=("$@") +# get number of elements +ELEMENTS=${#args[@]} + +# echo "$@" > args.txt + +# echo each element in array +# for loop + +for (( i=0;i<$ELEMENTS;i++)); do + # echo "${args[${i}]}" + if [[ ${args[${i}]} == /cygdrive* ]]; then + path=$(cygpath -w ${args[${i}]}) + # echo "original path: ${args[${i}]}, updated path: $path" + args[${i}]=$path + fi + if [[ ${args[${i}]} == /tmp* ]]; then + path=$(cygpath -w ${args[${i}]}) + # echo "original path: ${args[${i}]}, updated path: $path" + args[${i}]=$path + fi + + args[${i}]="${args[${i}]}" +done + +echo ${args[@]} > xml.args +xml "${args[@]}" + +# set "${args[@]}" + +# echo $@ > xml.args + +# OUTPUT=$(xml $@) # echo $OUTPUT \ No newline at end of file