Commit 738f1e81 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: add EPM_VERBOSE support and allow verbose for repack scripts

parent ed9fe999
...@@ -82,7 +82,7 @@ Usage="Usage: epm [options] <command> [package name(s), package files]..." ...@@ -82,7 +82,7 @@ Usage="Usage: epm [options] <command> [package name(s), package files]..."
Descr="epm - EPM package manager" Descr="epm - EPM package manager"
EPMVERSION=@VERSION@ EPMVERSION=@VERSION@
verbose= verbose=$EPM_VERBOSE
quiet= quiet=
nodeps= nodeps=
noremove= noremove=
......
...@@ -55,7 +55,7 @@ __epm_play_run() ...@@ -55,7 +55,7 @@ __epm_play_run()
shift shift
if [ ! -x "$script" ] ; then if [ ! -x "$script" ] ; then
fatal "Can't find play script $script." fatal "Can't find executable play script $script."
fi fi
# allow use EGET in the scripts # allow use EGET in the scripts
...@@ -65,8 +65,10 @@ __epm_play_run() ...@@ -65,8 +65,10 @@ __epm_play_run()
export SUDO export SUDO
local bashopt=''
[ -n "$verbose" ] && bashopt='-x' && export EPM_VERBOSE="$verbose"
#info "Running $($script --description 2>/dev/null) ..." #info "Running $($script --description 2>/dev/null) ..."
docmd $script "$@" docmd bash $bashopt $script "$@"
} }
epm_play() epm_play()
......
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