Commit d5ea8166 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add --force for --update support

parent def6b465
......@@ -234,6 +234,8 @@ fi
if [ "$1" = "--update" ] ; then
shift
local CMDUPDATE="--update"
[ -n "$force" ] && CMDUPDATE="--run"
if [ "$1" = "all" ] ; then
shift
RES=0
......@@ -246,7 +248,7 @@ if [ "$1" = "--update" ] ; then
RES=1
continue
fi
__epm_play_run $prescription --update "$@" || RES=$?
__epm_play_run $prescription $CMDUPDATE "$@" || RES=$?
done
exit $RES
fi
......@@ -256,7 +258,7 @@ if [ "$1" = "--update" ] ; then
__is_app_installed "$1" || fatal "$1 is not installed"
prescription="$1"
shift
__epm_play_run $prescription --update "$@"
__epm_play_run $prescription $CMDUPDATE "$@"
exit
fi
......
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