Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fonts-degooglifier
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
libre
fonts-degooglifier
Commits
4d99d1e5
Commit
4d99d1e5
authored
Jan 24, 2019
by
Michał 'rysiek' Woźniak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some function name changes
parent
de62976b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
degooglify.sh
degooglify.sh
+5
-5
No files found.
degooglify.sh
View file @
4d99d1e5
...
...
@@ -12,7 +12,7 @@
#
# $1 -- font directory to dump the fonts to
# $2 -- the CSS file to degooglify
function
degooglify_css
()
{
function
degooglify_css
_file
()
{
# source CSS file
CSS_SRC
=
"
$2
"
...
...
@@ -78,7 +78,7 @@ function degooglify_css() {
#
# $1 -- font directory to dump the fonts to
# $2 -- URL
function
degooglify_
remote
()
{
function
degooglify_
css_url
()
{
# destination directory
# assuming it exists and is writeable
...
...
@@ -105,7 +105,7 @@ function degooglify_remote() {
wget
-nc
--progress
=
dot
-O
"
$CSS_LOCAL
"
"
$CSS_REMOTE
"
# handle the downlaoded file
degooglify_css
"
$FONT_DIR
"
"
$CSS_LOCAL
"
degooglify_css
_file
"
$FONT_DIR
"
"
$CSS_LOCAL
"
}
...
...
@@ -128,9 +128,9 @@ for SOURCE_OF_CSS in "$@"; do
# are we dealing with a remote resource?
if
[[
${
SOURCE_OF_CSS
,,
}
==
"https://"
*
]]
;
then
# yes we are! deal with it, then
degooglify_
remote
"
$TARGET_FONT_DIR
"
"
$SOURCE_OF_CSS
"
degooglify_
css_url
"
$TARGET_FONT_DIR
"
"
$SOURCE_OF_CSS
"
else
# nope, all local
degooglify_css
"
$TARGET_FONT_DIR
"
"
$SOURCE_OF_CSS
"
degooglify_css
_file
"
$TARGET_FONT_DIR
"
"
$SOURCE_OF_CSS
"
fi
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment