From ade5236b019d410465c9002acd6960b6f6fd119c Mon Sep 17 00:00:00 2001 From: "kebler.net" Date: Thu, 16 Sep 2021 14:24:33 -0700 Subject: [PATCH] feat: add second url to open argument to script --- all/modules/chromium/chromium.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/all/modules/chromium/chromium.sh b/all/modules/chromium/chromium.sh index 6f56778..ea25a70 100755 --- a/all/modules/chromium/chromium.sh +++ b/all/modules/chromium/chromium.sh @@ -9,6 +9,7 @@ local exe="/usr/bin/chromium" [[ ! $exe ]] && echo chromium not installed set && return 1 user=${CHROMIUM_USER} [[ $1 && ( ! $1 == -* ) ]] && user=$1 && shift +[[ $1 && ( ! $1 == -* ) ]] && url=$1 && shift user=${user:-$USER} if [[ $user == "$USER" ]]; then unset CHROME_CONFIG_HOME @@ -19,7 +20,7 @@ if [[ $user == "$USER" ]]; then [[ $user == "incognito" ]] && set -- "$@" "-incognito" dir=${CHROMIUM_HOME:-$DEFAULT} echo "$exe $@ --user-data-dir=$dir/$user" - "$exe" "$@" --user-data-dir="$dir"/"$user" + "$exe" "$@" --user-data-dir="$dir"/"$user" $url fi }