Commit a583174f authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-prescription: drop obsoleted code

parent 54771f18
...@@ -48,30 +48,18 @@ local psdir="$CONFIGDIR/prescription.d" ...@@ -48,30 +48,18 @@ local psdir="$CONFIGDIR/prescription.d"
if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
cat <<EOF cat <<EOF
Options: Options:
APP - install APP receipt - run receipt
--list - list all installed apps --list-all - list all available receipts
--list-all - list all available apps
EOF EOF
exit exit
fi fi
if [ "$1" = "--list" ] || [ "$1" = "--installed" ] ; then
shift
echo "Installed:"
local i
for i in $(__list_installed_app) ; do
printf " %-20s - %s\n" "$i" "$($psdir/$i.sh --description 2>/dev/null)"
done
exit
fi
if [ "$1" == "--list-all" ] || [ -z "$*" ] ; then if [ "$1" == "--list-all" ] || [ -z "$*" ] ; then
echo "Run with a name of a prescription to run:" echo "Run with a name of a prescription to run:"
for i in $psdir/*.sh ; do for i in $psdir/*.sh ; do
printf " %-20s - %s\n" "$(basename $i .sh)" "$($i --description 2>/dev/null)" printf " %-20s - %s\n" "$(basename $i .sh)" "$($i --description 2>/dev/null)"
done done
echo echo
echo "run epm prescription --list to list installed only"
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