Commit 6e0cadd9 authored by Willi Rath's avatar Willi Rath

Use exits in inner scopes

parent bf44c2c9
......@@ -25,9 +25,9 @@ ssh -f -D localhost:${socks_5_port} ${tunnel_host} sleep 15
# cycle through possible browsers
browser=$(
which chromium-browser &>/dev/null && { echo chromium-browser; return; }
which chromium &>/dev/null && { echo chromium; return; }
[ -e /Applications/Chromium.app/Contents/MacOS/Chromium ] && { echo "/Applications/Chromium.app/Contents/MacOS/Chromium"; return; }
[ -e /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome ] && { echo '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'; return; }
which chromium-browser &>/dev/null && { echo chromium-browser; exit; }
which chromium &>/dev/null && { echo chromium; exit; }
[ -e /Applications/Chromium.app/Contents/MacOS/Chromium ] && { echo "/Applications/Chromium.app/Contents/MacOS/Chromium"; exit; }
[ -e /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome ] && { echo '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'; exit; }
)
"${browser}" --new-window --user-data-dir="/tmp/chromium_user_data_$(date -Ins)" --proxy-server="socks5://localhost:${socks_5_port}" ${URL}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment