diff --git a/cygwin/bin/cygwin-alias.sh b/cygwin/bin/cygwin-alias.sh old mode 100644 new mode 100755 diff --git a/src/ks-avi b/src/ks-avi index 16d3018..f87fb03 100755 --- a/src/ks-avi +++ b/src/ks-avi @@ -27,6 +27,12 @@ default_lang_audio="spa" default_lang_subt="spa" v_ext="avi" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$? diff --git a/src/ks-crop b/src/ks-crop index 1e9f995..5e5d821 100755 --- a/src/ks-crop +++ b/src/ks-crop @@ -31,6 +31,12 @@ resolution=null modeCrop=null inputFile="${2}" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$? diff --git a/src/ks-mix b/src/ks-mix index 30ca0dd..414c578 100755 --- a/src/ks-mix +++ b/src/ks-mix @@ -20,6 +20,12 @@ output_file_dir="${current_dir}/output.mkv" default_lang_audio="spa" default_lang_subt="spa" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$? diff --git a/src/ks-mp3 b/src/ks-mp3 index 5fb611a..d5d222e 100755 --- a/src/ks-mp3 +++ b/src/ks-mp3 @@ -20,6 +20,12 @@ b_acodec="128k" v_ext="mp3" default_lang_audio="spa" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$? diff --git a/src/ks-mp3-album b/src/ks-mp3-album index 3b962c3..fe183fe 100755 --- a/src/ks-mp3-album +++ b/src/ks-mp3-album @@ -27,6 +27,12 @@ track_init="1" artist_init="Artist" default_lang_audio="spa" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$? diff --git a/src/ks-mp4 b/src/ks-mp4 index e7a2abf..c8175aa 100755 --- a/src/ks-mp4 +++ b/src/ks-mp4 @@ -27,6 +27,12 @@ default_lang_audio="spa" default_lang_subt="spa" v_ext="mp4" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$? diff --git a/src/ks-mp4k b/src/ks-mp4k index 973aae6..416ad2f 100755 --- a/src/ks-mp4k +++ b/src/ks-mp4k @@ -27,6 +27,12 @@ default_lang_audio="spa" default_lang_subt="spa" v_ext="mp4" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$? diff --git a/src/ks-mp4s b/src/ks-mp4s index 882ef00..bba6d08 100755 --- a/src/ks-mp4s +++ b/src/ks-mp4s @@ -27,6 +27,12 @@ default_lang_audio="spa" default_lang_subt="spa" v_ext="mp4" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$? diff --git a/src/ks-mp4s-folder b/src/ks-mp4s-folder index 98b5c41..a063d44 100755 --- a/src/ks-mp4s-folder +++ b/src/ks-mp4s-folder @@ -14,6 +14,12 @@ tempFile="/tmp/ks-mp4s-folder.txt" tempFileTest="/tmp/ks-mp4s-folder-test.txt" formatFiles="mp4 avi mpg mpeg mov wmv mkv ogv webm rm flv vob ts" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Show help when folder is empty if [ -z "${1}" ] ; then echo "" diff --git a/src/ks-oga b/src/ks-oga index 359e086..1075a0e 100755 --- a/src/ks-oga +++ b/src/ks-oga @@ -20,6 +20,12 @@ b_acodec="130k" v_ext="oga" default_lang_audio="spa" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$? diff --git a/src/ks-oga-album b/src/ks-oga-album index dbcc1d7..9d68f94 100755 --- a/src/ks-oga-album +++ b/src/ks-oga-album @@ -27,6 +27,12 @@ track_init="1" artist_init="Artist" default_lang_audio="spa" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$? diff --git a/src/ks-upa b/src/ks-upa index 9ea0f4c..427120f 100755 --- a/src/ks-upa +++ b/src/ks-upa @@ -17,6 +17,12 @@ listTemp="ks-tools.list" dirConfig="$HOME/.ks-tools" ksToolsTempFolder="/tmp/ks-tools" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Function to remove spaces and symbols # Syntax: convertText "" function convertText() { diff --git a/src/ks-upf b/src/ks-upf index 8def7ea..806546f 100755 --- a/src/ks-upf +++ b/src/ks-upf @@ -17,6 +17,12 @@ listTemp="ks-tools.list" dirConfig="$HOME/.ks-tools" ksToolsTempFolder="/tmp/ks-tools" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Function to remove spaces and symbols # Syntax: convertText "" function convertText() { diff --git a/src/ks-upr b/src/ks-upr index 4502a6d..9a612d9 100755 --- a/src/ks-upr +++ b/src/ks-upr @@ -17,6 +17,12 @@ listTemp="ks-tools.list" dirConfig="$HOME/.ks-tools" ksToolsTempFolder="/tmp/ks-tools" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Function to remove spaces and symbols # Syntax: convertText "" function convertText() { diff --git a/src/ks-upv b/src/ks-upv index f9c89b5..976be1d 100755 --- a/src/ks-upv +++ b/src/ks-upv @@ -17,6 +17,12 @@ listTemp="ks-tools.list" dirConfig="$HOME/.ks-tools" ksToolsTempFolder="/tmp/ks-tools" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Function to remove spaces and symbols # Syntax: convertText "" function convertText() { diff --git a/src/ks-vob b/src/ks-vob index 2a3a2d5..1453164 100755 --- a/src/ks-vob +++ b/src/ks-vob @@ -18,6 +18,12 @@ b_acodec="192k" default_lang_audio="spa" v_ext="vob" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$? diff --git a/wrapper/ks-avi-wrapper b/wrapper/ks-avi-wrapper index 6773b72..1179b6e 100755 --- a/wrapper/ks-avi-wrapper +++ b/wrapper/ks-avi-wrapper @@ -20,6 +20,12 @@ dirTemp="/tmp" listTemp="ks-tools.list" ksToolsTempFolder="/tmp/ks-tools" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$? diff --git a/wrapper/ks-mp4-wrapper b/wrapper/ks-mp4-wrapper index d1bac2f..fe37156 100755 --- a/wrapper/ks-mp4-wrapper +++ b/wrapper/ks-mp4-wrapper @@ -20,6 +20,12 @@ dirTemp="/tmp" listTemp="ks-tools.list" ksToolsTempFolder="/tmp/ks-tools" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$? diff --git a/wrapper/ks-mp4k-wrapper b/wrapper/ks-mp4k-wrapper index c080c38..aca5414 100755 --- a/wrapper/ks-mp4k-wrapper +++ b/wrapper/ks-mp4k-wrapper @@ -20,6 +20,12 @@ dirTemp="/tmp" listTemp="ks-tools.list" ksToolsTempFolder="/tmp/ks-tools" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$? diff --git a/wrapper/ks-mp4s-wrapper b/wrapper/ks-mp4s-wrapper index 91781c2..f764b4f 100755 --- a/wrapper/ks-mp4s-wrapper +++ b/wrapper/ks-mp4s-wrapper @@ -20,6 +20,12 @@ dirTemp="/tmp" listTemp="ks-tools.list" ksToolsTempFolder="/tmp/ks-tools" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$? diff --git a/wrapper/ks-vob-wrapper b/wrapper/ks-vob-wrapper index 3bc298d..a4ef05c 100755 --- a/wrapper/ks-vob-wrapper +++ b/wrapper/ks-vob-wrapper @@ -15,6 +15,12 @@ p_ffmpeg="ffmpeg -i" p_ffmpeg_patched="-max_muxing_queue_size 9999" rel_size="720x480" +# Check cygwin alias (for Windows) +if [ -f "/usr/bin/cygwin-alias.sh" ] ; then + shopt -s expand_aliases + source "/usr/bin/cygwin-alias.sh" +fi + # Check if ffmpeg is installed ffmpeg_test=$(ffmpeg --help 2>&1) error_ffmpeg=$?