Commit b28343d0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: hide /usr/bin/env bash in showcmd output

parent a0d39d8c
......@@ -69,7 +69,8 @@ __epm_pack_run_handler()
[ -n "$debug" ] && bashopt='-x'
#info "Running $($script --description 2>/dev/null) ..."
# TODO: add url info here
( unset BASH_ENV ; unset EPMCURDIR ; export PATH=$SCPATH ; export HOME=$(pwd) ; docmd $CMDSHELL $bashopt $packscript "$tarname" "$filefortarname" "$packversion" "$url" "$@") || fatal
showcmd $packscript "$tarname" "$filefortarname" "$packversion" "$url" "$@"
( unset BASH_ENV ; unset EPMCURDIR ; export PATH=$SCPATH ; export HOME=$(pwd) ; $CMDSHELL $bashopt $packscript "$tarname" "$filefortarname" "$packversion" "$url" "$@") || fatal
returntarname="$(cat "$filefortarname")" || fatal 'pack script $packscript didn'\''t set tarname'
local i
......
......@@ -75,7 +75,8 @@ __epm_play_run()
[ -n "$debug" ] && bashopt='-x'
#info "Running $($script --description 2>/dev/null) ..."
[ "$PROGDIR" = "/usr/bin" ] && SCPATH="$PATH" || SCPATH="$PROGDIR:$PATH"
( export EPM_OPTIONS="$EPM_OPTIONS $addopt" export PATH=$SCPATH ; docmd $CMDSHELL $bashopt $script "$@" )
showcmd $script "$@"
( export EPM_OPTIONS="$EPM_OPTIONS $addopt" export PATH=$SCPATH ; $CMDSHELL $bashopt $script "$@" )
}
......
......@@ -43,7 +43,8 @@ __apply_fix_code()
[ "$PROGDIR" = "/usr/bin" ] && SCPATH="$PATH" || SCPATH="$PROGDIR:$PATH"
local bashopt=''
[ -n "$debug" ] && bashopt='-x'
( unset EPMCURDIR ; export PATH=$SCPATH ; docmd $CMDSHELL $bashopt $repackcode "$1" "$2" "$3" "$4" "$5" ) || fatal 'There is an error from $repackcode script'
showcmd $repackcode "$1" "$2" "$3" "$4" "$5"
( unset EPMCURDIR ; export PATH=$SCPATH ; $CMDSHELL $bashopt $repackcode "$1" "$2" "$3" "$4" "$5" ) || fatal 'There is an error from $repackcode script'
}
__create_rpmmacros()
......
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