From c37592f7b3b0b9a8f353c08f291b3fd841eeeb30 Mon Sep 17 00:00:00 2001 From: Shivang Vijay Date: Sat, 7 Jan 2023 16:40:12 +0530 Subject: [PATCH] resolve issue of not working edit graph. Before using open or xdg-open, OS checking implemented --- editgraph | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/editgraph b/editgraph index 65934b3..213774a 100755 --- a/editgraph +++ b/editgraph @@ -1,14 +1,9 @@ #!/bin/bash -which open -if [ $? == 0 ] -then - open https://controlcore-project.github.io/DHGWorkflow/ -else - which xdg-open - if [ $? == 0 ] - then - xdg-open https://controlcore-project.github.io/DHGWorkflow/ - else - echo "unable to open browser for DHGWorkflow" - fi + +if [[ "$OSTYPE" =~ ^darwin ]]; then + open -a 'Google Chrome' https://controlcore-project.github.io/concore-editor/ fi + +if [[ "$OSTYPE" =~ ^linux ]]; then + xdg-open https://controlcore-project.github.io/concore-editor/ +fi \ No newline at end of file