Commit 25492369 authored by Vitaly Lipatov's avatar Vitaly Lipatov

update_versions.sh: small fixes

parent f798d860
......@@ -7,9 +7,10 @@ fatal()
exit 1
}
TDIR=~/epm-play-versions
EDIR=~/epm-errors
LDIR=~/epm-logs
LOGDIR=~
TDIR=$LOGDIR/epm-play-versions
EDIR=$LOGDIR/epm-errors
LDIR=$LOGDIR/epm-logs
mkdir -p $TDIR/ $EDIR/ $LDIR/
rm -f $EDIR/errors.txt
......@@ -23,8 +24,11 @@ install_app()
local alt="$2"
[ -n "$alt" ] && applog="$applog.$alt"
echo "epm play $app $alt"
$EPM play --verbose --auto $app $alt >$EDIR/$applog 2>&1 || return
echo -n "epm play $app $alt ..."
$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
......
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