#!/bin/bash

#This access script opens an unencrypted HTTP URL in the default browser.

if [ ! "$1" ]
then
	echo "no URL provided" >&2
	exit 1
fi

if ! echo "$1" | grep -q '^http://'
then
	echo "URL does not start with http://" >&2
	exit 1
fi
exec xdg-open "$1"
