Explorar el Código

Update firstpush

Scott Lahteine hace 4 años
padre
commit
07252ad0b3
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1
    3
      buildroot/share/git/firstpush

+ 1
- 3
buildroot/share/git/firstpush Ver fichero

@@ -16,9 +16,7 @@ BRANCH=${INFO[5]}
16 16
 
17 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 20
 URL="https://github.com/$FORK/$REPO/commits/$BRANCH"
23 21
 
24 22
 if [ -z "$OPEN" ]; then

Loading…
Cancelar
Guardar