diff options
-rwxr-xr-x | firefox-profile | 6 |
1 files 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 |