diff options
Diffstat (limited to 'install/firefox.fish')
| -rwxr-xr-x | install/firefox.fish | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/install/firefox.fish b/install/firefox.fish index 3f6c78c..f22a259 100755 --- a/install/firefox.fish +++ b/install/firefox.fish @@ -23,7 +23,8 @@ if test -d $HOME/.zen for profile in $HOME/.zen/*/chrome for file in userChrome userContent if test -f $profile/$file.css - echo -e "@import url('$dist/zen/$file.css');\n$(cat $profile/$file.css)" > $profile/$file.css + set -l imp "@import url('$dist/zen/$file.css');" + grep -qFx $imp $profile/$file.css || printf '%s\n%s' $imp "$(cat $profile/$file.css)" > $profile/$file.css else echo "@import url('$dist/zen/$file.css');" > $profile/$file.css end |