# Dispatch
if [ ! -z "$1" ] && [ "$1" != "template" ]; then
- if [ -d "$PROFILES/$1" ]; then
- firefox -p $1 -new-instance &
- else
+ if [ ! -d "$PROFILES/$1" ]; then
firefox -CreateProfile "$1 $PROFILES/$1"
if [ -d "$PROFILES/template" ]; then
rm -rf $PROFILES/$1 && cp -a $PROFILES/template $PROFILES/$1
fi
fi
+
+ firefox -p $1 -new-instance &
else
- firefox --profilemanager -new-instance
+ firefox --profilemanager -new-instance &
fi