From: Silvio Rhatto Date: Sat, 9 Mar 2019 13:40:11 +0000 (-0300) Subject: Support for starting the template template at firefox-profile X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f0df3ee9d5b887278f9eadced61ed48284b6664e;p=utils-x11.git Support for starting the template template at firefox-profile --- 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