Commit f5fff1d0 authored by Alexandru Băluț's avatar Alexandru Băluț
Browse files

bin: Avoid aliasing error messages

Differential Revision: https://phabricator.freedesktop.org/D940
parent b7857a60
......@@ -29,13 +29,15 @@ alias ptivi-xdg-app="$XDGAPP_ENVPATH/pitivi/bin/pitivi-xdg-app -b"
echo "-> Setting up environment if needed:"
ptvenv "echo '===> Environment ready'"
for i in `ptvenv ls /app/bin/`;
do
alias $i="$XDGAPP_ENVPATH/pitivi/bin/pitivi-xdg-app -b $i"
done
alias pitivi="cd $XDGAPP_ENVPATH/pitivi && $XDGAPP_ENVPATH/pitivi/bin/pitivi-xdg-app -b bin/pitivi && cd - > /dev/null"
export PS1="(ptv-xdgapp) $PS1"
export PATH="$XDGAPP_ENVPATH/bin/:$PATH"
if [ "$?" = "0" ];
then
for i in `ptvenv ls /app/bin/`;
do
alias $i="$XDGAPP_ENVPATH/pitivi/bin/pitivi-xdg-app -b $i"
done
alias pitivi="cd $XDGAPP_ENVPATH/pitivi && $XDGAPP_ENVPATH/pitivi/bin/pitivi-xdg-app -b bin/pitivi && cd - > /dev/null"
export PS1="(ptv-xdgapp) $PS1"
export PATH="$XDGAPP_ENVPATH/bin/:$PATH"
fi
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