Scott Lahteine 4 år sedan
förälder
incheckning
df22b96d72
1 ändrade filer med 1 tillägg och 3 borttagningar
  1. 1
    3
      buildroot/share/git/mfpr

+ 1
- 3
buildroot/share/git/mfpr Visa fil

@@ -23,9 +23,7 @@ OLDBRANCH=${INFO[5]}
23 23
 # See if it's been pushed yet
24 24
 if [ -z "$(git branch -vv | grep ^\* | grep \\[origin)" ]; then firstpush; fi
25 25
 
26
-which xdg-open >/dev/null && TOOL=xdg-open
27
-which gnome-open >/dev/null && TOOL=gnome-open
28
-which open >/dev/null && TOOL=open
26
+OPEN=$(echo $(which gnome-open xdg-open open) | awk '{ print $1 }')
29 27
 URL="https://github.com/$ORG/$REPO/compare/$TARG...$FORK:$BRANCH?expand=1"
30 28
 
31 29
 if [ -z "$OPEN" ]; then

Laddar…
Avbryt
Spara