only run xdg-open if there is DISPLAY

epel9
Jens Petersen 15 years ago
parent 5e9ae7fc32
commit c3e8b642b9

@ -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

Loading…
Cancel
Save