Commit e3c3c499 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: skip --update if the package is not installed

parent 5de00bdc
......@@ -184,7 +184,7 @@ if [ "$1" = "--update" ] ; then
RES=1
continue
fi
__epm_play_run $prescription --run "$@" || RES=$?
__epm_play_run $prescription --update "$@" || RES=$?
done
exit $RES
fi
......@@ -194,7 +194,7 @@ if [ "$1" = "--update" ] ; then
__check_installed_app "$1" || fatal "$1 is not installed"
prescription="$1"
shift
__epm_play_run $prescription --run "$@"
__epm_play_run $prescription --update "$@"
exit
fi
......
#!/bin/sh
PKGNAME=chrome-remote-desktop
[ "$1" != "--run" ] && exit # echo " Remote desktop support for google-chrome & chromium" && exit
DESCRIPTION='' # echo " Remote desktop support for google-chrome & chromium" && exit
. $(dirname $0)/common.sh
......
......@@ -16,5 +16,18 @@ if [ "$1" = "--installed" ] ; then
exit
fi
if [ "$1" = "--description" ] ; then
echo "$DESCRIPTION"
exit
fi
[ "$1" != "--run" ] && [ "$1" != "--update" ] && fatal "Unknown command $1"
if [ "$1" = "--update" ] ; then
if ! epm installed $PKGNAME ; then
echo "Skipping update of $PKGNAME (package is not installed)"
exit
fi
fi
[ "$1" != "--run" ] && echo "$DESCRIPTION" && exit
......@@ -10,8 +10,6 @@ fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "MS SQL Server sqlcmd and bcp from the official site" && exit
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
case "$($DISTRVENDOR -d)" in
......
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