Commit 34509877 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-play: pass an additional args to the scripts

parent 473f7a43
...@@ -53,7 +53,6 @@ __epm_play_run() ...@@ -53,7 +53,6 @@ __epm_play_run()
{ {
local script="$psdir/$1.sh" local script="$psdir/$1.sh"
shift shift
local option="$1"
if [ ! -x "$script" ] ; then if [ ! -x "$script" ] ; then
fatal "Can't find play script $script." fatal "Can't find play script $script."
...@@ -65,7 +64,7 @@ __epm_play_run() ...@@ -65,7 +64,7 @@ __epm_play_run()
export PATH=$PROGDIR:$PATH export PATH=$PROGDIR:$PATH
#info "Running $($script --description 2>/dev/null) ..." #info "Running $($script --description 2>/dev/null) ..."
docmd $script $option docmd $script "$@"
} }
epm_play() epm_play()
...@@ -116,6 +115,9 @@ if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then ...@@ -116,6 +115,9 @@ if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then
exit exit
fi fi
#__check_installed_app "$1" && info "$1 is already installed (use --remove to remove)" && exit 1 prescription="$1"
__epm_play_run "$1" --run && __save_installed_app "$1" || fatal "There was some error during install the application." shift
#__check_installed_app "$prescription" && info "$$prescription is already installed (use --remove to remove)" && exit 1
__epm_play_run "$prescription" --run "$@" && __save_installed_app "$prescription" || fatal "There was some error during install the application."
} }
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