only run xdg-open if there is DISPLAY
This commit is contained in:
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
|
||||
|
||||
if [ -n "$DISPLAY"]; then
|
||||
xdg-open pkgs.svg
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user