瀏覽代碼

Update mfpr

Scott Lahteine 4 年之前
父節點
當前提交
df22b96d72
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1
    3
      buildroot/share/git/mfpr

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

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

Loading…
取消
儲存