#!/usr/bin/env bash open-url-with-delay(){ if [[ -z "$1" ]]; then echo '$1 is empty.' exit fi local browser_open=${BROWSER_OPEN:=True} local seconds=${2:-2} if [[ $browser_open == 'True' ]]; then sleep "$seconds" open-with-os "$1" fi }