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