From f0df3ee9d5b887278f9eadced61ed48284b6664e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 9 Mar 2019 10:40:11 -0300 Subject: Support for starting the template template at firefox-profile --- firefox-profile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/firefox-profile b/firefox-profile index 8e5e490..a5dc545 100755 --- a/firefox-profile +++ b/firefox-profile @@ -14,11 +14,13 @@ if ! which firefox &> /dev/null; then fi # Dispatch -if [ ! -z "$1" ] && [ "$1" != "template" ]; then +#if [ ! -z "$1" ] && [ "$1" == "private" ]; then +# firefox -private +if [ ! -z "$1" ]; then if [ ! -d "$PROFILES/$1" ]; then firefox -CreateProfile "$1 $PROFILES/$1" - if [ -d "$PROFILES/template" ]; then + if [ -d "$PROFILES/template" ] && [ "$1" != "template" ]; then rm -rf $PROFILES/$1 && cp -a $PROFILES/template $PROFILES/$1 fi fi -- cgit v1.2.3