Browse Source

Update firstpush

Scott Lahteine 4 years ago
parent
commit
07252ad0b3
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      buildroot/share/git/firstpush

+ 1
- 3
buildroot/share/git/firstpush View File

16
 
16
 
17
 git push --set-upstream origin HEAD:$BRANCH
17
 git push --set-upstream origin HEAD:$BRANCH
18
 
18
 
19
-which xdg-open >/dev/null && TOOL=xdg-open
20
-which gnome-open >/dev/null && TOOL=gnome-open
21
-which open >/dev/null && TOOL=open
19
+OPEN=$(echo $(which gnome-open xdg-open open) | awk '{ print $1 }')
22
 URL="https://github.com/$FORK/$REPO/commits/$BRANCH"
20
 URL="https://github.com/$FORK/$REPO/commits/$BRANCH"
23
 
21
 
24
 if [ -z "$OPEN" ]; then
22
 if [ -z "$OPEN" ]; then

Loading…
Cancel
Save