Commit 4b1339a6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

play.d/common.sh: fix direct run support

parent 68bd51bc
......@@ -132,12 +132,9 @@ case "$1" in
esac
# legacy compatibility and support direct run the script
if [ -z "epm print info" ] ; then
export DISTRVENDOR="epm print info"
if [ -x "../bin/epm" ] ; then
export PATH="$(realpath ../bin):$PATH"
fi
# support direct run the script
if [ -x "../bin/epm" ] ; then
export PATH="$(realpath ../bin):$PATH"
fi
if [ -z "$SUDO" ] && [ "$UID" != "0" ] ; then
......
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