Commit c4743480 authored by Aral Balkan's avatar Aral Balkan
Browse files

Updated .gitignore to ignore the blockerlist (which is a symlink dynamically...

Updated .gitignore to ignore the blockerlist (which is a symlink dynamically created at installation time. Updated install script to fix syntax errors.
parent 5aed6e94
.DS_Store
*.safariextz
\ No newline at end of file
*.safariextz
Better.safariextension/blockerList.json
\ No newline at end of file
......@@ -27,18 +27,22 @@ set -e
#
greetings(){
echo "\n❤ Installing Better Safari Extension."
echo "\n❤ Installing Better Safari Extension.\n"
}
ensureDependenciesExist(){
# None
echo " · This component has no dependencies. Skipping dependency resolution."
}
installSelf(){
echo "\n · Creating symlink to the content blocking rules (blockerList.json)"
blockerListPath=Better.safariextension/blockerList.json
if ! [ -f $blockerListPath ]; then ln -s ~/better.fyi/data/site/blockerList.json $blockerListPath; fi
if ! [ -f $blockerListPath ]; then
echo "\n · Creating symlink to the content blocking rules (blockerList.json)"
ln -s ~/better.fyi/data/site/blockerList.json $blockerListPath;
else
echo "\n · Content blocking rules (blockerList.json) symlink already exists. Skipped creation."
fi
echo "\n · Installation complete.\n\n"
}
......@@ -48,7 +52,9 @@ installSelf(){
#
main(){
greetings()
ensureDependenciesExist()
installSelf()
}
\ No newline at end of file
greetings
ensureDependenciesExist
installSelf
}
main
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment