~dricottone/mail-filters

mail-filters/src/open-in-browser.sh -rwxr-xr-x 277 bytes
1d95aa92Dominic Ricottone Removing wrapper 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# open-in-browser.sh
# ==================
# A wrapper around parcels which opens a selected URL in a browser.

PARCELS_INSTALL_DIR=/usr/local/bin
BROWSER=firefox

url="$($PARCELS_INSTALL_DIR/parcels -n "$1")"
if [ -z "$url" ]; then
  exit 1
fi
exec $BROSWER "$url"