Fix IFS unset

This commit is contained in:
q3aql 2023-02-11 14:46:48 +01:00
parent 8f47ebabed
commit 8c2aa0f375
6 changed files with 12 additions and 6 deletions

View File

@ -13,7 +13,8 @@ M_DATE="100223"
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
IFS="abcdefghijklmnopqrstyvwxzABCDEFHIJKLMNOPQRSTYVWXZ@/()"
ffmpeg_version=$(echo ${ffmpeg_version})
IFS=""
IFS=$' \t\n'
unset IFS
if [ -z "${ffmpeg_version}" ] ; then
video_sync="vsync"
else

View File

@ -13,7 +13,8 @@ M_DATE="100223"
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
IFS="abcdefghijklmnopqrstyvwxzABCDEFHIJKLMNOPQRSTYVWXZ@/()"
ffmpeg_version=$(echo ${ffmpeg_version})
IFS=""
IFS=$' \t\n'
unset IFS
if [ -z "${ffmpeg_version}" ] ; then
video_sync="vsync"
else

View File

@ -13,7 +13,8 @@ M_DATE="100223"
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
IFS="abcdefghijklmnopqrstyvwxzABCDEFHIJKLMNOPQRSTYVWXZ@/()"
ffmpeg_version=$(echo ${ffmpeg_version})
IFS=""
IFS=$' \t\n'
unset IFS
if [ -z "${ffmpeg_version}" ] ; then
video_sync="vsync"
else

View File

@ -13,7 +13,8 @@ M_DATE="100223"
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
IFS="abcdefghijklmnopqrstyvwxzABCDEFHIJKLMNOPQRSTYVWXZ@/()"
ffmpeg_version=$(echo ${ffmpeg_version})
IFS=""
IFS=$' \t\n'
unset IFS
if [ -z "${ffmpeg_version}" ] ; then
video_sync="vsync"
else

View File

@ -13,7 +13,8 @@ M_DATE="100223"
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
IFS="abcdefghijklmnopqrstyvwxzABCDEFHIJKLMNOPQRSTYVWXZ@/()"
ffmpeg_version=$(echo ${ffmpeg_version})
IFS=""
IFS=$' \t\n'
unset IFS
if [ -z "${ffmpeg_version}" ] ; then
video_sync="vsync"
else

View File

@ -13,7 +13,8 @@ M_DATE="100223"
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
IFS="abcdefghijklmnopqrstyvwxzABCDEFHIJKLMNOPQRSTYVWXZ@/()"
ffmpeg_version=$(echo ${ffmpeg_version})
IFS=""
IFS=$' \t\n'
unset IFS
if [ -z "${ffmpeg_version}" ] ; then
video_sync="vsync"
else