aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-03-09 10:40:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-03-09 10:40:11 -0300
commitf0df3ee9d5b887278f9eadced61ed48284b6664e (patch)
tree12ec2ca84220d860bfd6cbca59510502b5eae938
parent1e43f69be26f77c2ba07261a9cddc062cfe04a0a (diff)
downloadutils-x11-f0df3ee9d5b887278f9eadced61ed48284b6664e.tar.gz
utils-x11-f0df3ee9d5b887278f9eadced61ed48284b6664e.tar.bz2
Support for starting the template template at firefox-profile
-rwxr-xr-xfirefox-profile6
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