Commit d5ea8166 authored by Vitaly Lipatov's avatar Vitaly Lipatov

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

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