Commit bc608b2f authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: check if /dev/stdin is pipe when check command in stdin

parent 89af1a7c
......@@ -625,7 +625,7 @@ fi
export EPM_OPTIONS="$nodeps $force $verbose $debug $quiet $interactive $non_interactive $save_only $download_only"
# if input is not console and run script from file, get pkgs from stdin too
if [ ! -n "$inscript" ] && ! inputisatty && [ -n "$PROGDIR" ] ; then
if [ ! -n "$inscript" ] && [ -p /dev/stdin ] && [ "$EPMMODE" != "pipe" ] ; then
for opt in $(withtimeout 10 cat) ; do
# FIXME: do not work
# workaround against # yes | epme
......
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