Commit 25492369 authored by Vitaly Lipatov's avatar Vitaly Lipatov

update_versions.sh: small fixes

parent f798d860
...@@ -7,9 +7,10 @@ fatal() ...@@ -7,9 +7,10 @@ fatal()
exit 1 exit 1
} }
TDIR=~/epm-play-versions LOGDIR=~
EDIR=~/epm-errors TDIR=$LOGDIR/epm-play-versions
LDIR=~/epm-logs EDIR=$LOGDIR/epm-errors
LDIR=$LOGDIR/epm-logs
mkdir -p $TDIR/ $EDIR/ $LDIR/ mkdir -p $TDIR/ $EDIR/ $LDIR/
rm -f $EDIR/errors.txt rm -f $EDIR/errors.txt
...@@ -23,8 +24,11 @@ install_app() ...@@ -23,8 +24,11 @@ install_app()
local alt="$2" local alt="$2"
[ -n "$alt" ] && applog="$applog.$alt" [ -n "$alt" ] && applog="$applog.$alt"
echo "epm play $app $alt" echo -n "epm play $app $alt ..."
$EPM play --verbose --auto $app $alt >$EDIR/$applog 2>&1 || return $EPM play --verbose --auto $app $alt >$EDIR/$applog 2>&1
local RES=$?
[ "$RES" = 0 ] && echo "OK" || echo "FAILED"
[ "$RES" = 0 ] || return $RES
mv -f $EDIR/$applog $LDIR/$applog mv -f $EDIR/$applog $LDIR/$applog
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment