Skip to content

Commit 49d1594

Browse files
author
Julien Castelain
committed
Fix errors
1 parent 944ee7c commit 49d1594

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

git-get

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env bash
2-
set -o errexit
3-
set -o pipefail
2+
set -e
43

54
__main() {
65
if [[ $# -lt 1 ]] ; then
@@ -148,7 +147,7 @@ __main() {
148147
local url
149148
url="https://github.com/$target_user/$project/compare/$target_branch...$user:$branch"
150149

151-
if command -v open >/dev/null | grep -v "alias" ; then
150+
if command -v open | tee /dev/null | grep -v "alias" ; then
152151
open "$url"
153152
elif command -v xdg-open >/dev/null ; then
154153
xdg-open "$url"
@@ -175,4 +174,3 @@ __usage() {
175174
}
176175

177176
__main "$@"
178-

0 commit comments

Comments
 (0)