Commit 4b33bb2e authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-play: add installed-version support

parent 16bad341
......@@ -51,6 +51,14 @@ __check_installed_app()
grep -q -- "^$1\$" $epm_vardir/installed-app
}
__get_app_version()
{
local script="$psdir/$1.sh"
[ -x "$script" ] || return
$script --installed-version
return
}
__list_all_app()
{
for i in $psdir/*.sh ; do
......@@ -259,6 +267,13 @@ if [ "$1" = "--installed" ] || [ "$1" = "installed" ] ; then
exit
fi
if [ "$1" = "--installed-version" ] || [ "$1" = "installed-version" ] ; then
shift
__get_app_version "$1"
#[ -n "$quiet" ] && exit
exit
fi
if [ "$1" = "--list" ] || [ "$1" = "--list-installed" ] || [ "$1" = "list" ] || [ "$1" = "list-installed" ] ; then
__epm_play_list_installed
exit
......
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