only run xdg-open if there is DISPLAY

This commit is contained in:
Jens Petersen 2010-06-03 07:22:29 +00:00
parent 5e9ae7fc32
commit c3e8b642b9

View File

@ -29,4 +29,6 @@ for i in $GHC_PKGS; do sed -i -e /$i/d pkgs.dot; done
cat pkgs.dot | tred | dot -Nfontsize=8 -Tsvg >pkgs.svg
xdg-open pkgs.svg
if [ -n "$DISPLAY"]; then
xdg-open pkgs.svg
fi