Commit 0a686e78 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm prescription --list-all: fix Unknown option --list-all (eterbug #17857)

parent f1658896
......@@ -33,6 +33,12 @@ epm_prescription()
local psdir="$CONFIGDIR/prescription.d"
if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then
[ -n "$short" ] || [ -n "$quiet" ] || message "Run with a name of a prescription to run:"
__epm_play_list $psdir
exit
fi
while [ -n "$1" ] ; do
case "$1" in
-h|--help)
......@@ -57,12 +63,6 @@ case "$1" in
esac
done
if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then
[ -n "$short" ] || [ -n "$quiet" ] || message "Run with a name of a prescription to run:"
__epm_play_list $psdir
exit
fi
prescription="$1"
shift
......
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