ソースを参照

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

読み込み中…
キャンセル
保存