diff options
Diffstat (limited to 'abs/core-testing/linhes-scripts/screenshooter.sh')
-rwxr-xr-x | abs/core-testing/linhes-scripts/screenshooter.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/abs/core-testing/linhes-scripts/screenshooter.sh b/abs/core-testing/linhes-scripts/screenshooter.sh index 9e35786..94ea6fd 100755 --- a/abs/core-testing/linhes-scripts/screenshooter.sh +++ b/abs/core-testing/linhes-scripts/screenshooter.sh @@ -87,11 +87,16 @@ if [ ! -d "$VIDEO_CAPTURE_HOME" ] ; then fi VIDEO_HOME=$(mysql -u $DBUSERNAME --password=$DBPASSWORD -h $BACKEND_HOSTNAME mythconverg -sNBe "select data from settings where value='VideoStartupDir' limit 1") -if [ ! -d "$VIDEO_HOME" ] ; then - echo "Directory $VIDEO_HOME does not exist, nowhere to put the screen shot!" - echo "Have you configured MythVideo yet?" - exit 1 -fi +VIDEO_HOME=(${VIDEO_HOME//:/ }); +VIDEO_HOME_COUNT=${#VIDEO_HOME[@]} +for (( i=0; i<${VIDEO_HOME_COUNT}; i++ )); +do + if [ ! -d "${VIDEO_HOME[${i}]}" ] ; then + echo "Directory ${VIDEO_HOME[${i}]} does not exist, nowhere to put the screen shot!" + echo "Have you configured MythVideo yet?" + exit 1 + fi +done VIDEO_FILENAME=$(basename "$VIDEO_PATHNAME") VIDEO_EXTENSION=${VIDEO_FILENAME##*.} |