always unset openopt

This commit is contained in:
Paul Irish 2017-12-01 12:26:25 -08:00 committed by GitHub
parent 7c0e5bf092
commit f99fb9a105
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,9 +137,9 @@ esac
# Allow printing the url if BROWSER=echo
if [[ $BROWSER != "echo" ]]; then
exec &>/dev/null
else
unset openopt
fi
# open it in a browser
${BROWSER:-$open} $openopt "$openurl"
unset openopt