浏览代码

Update firstpush

Scott Lahteine 4 年前
父节点
当前提交
07252ad0b3
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1
    3
      buildroot/share/git/firstpush

+ 1
- 3
buildroot/share/git/firstpush 查看文件

@@ -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

正在加载...
取消
保存