Commit 0ab9452c authored by Aral Balkan's avatar Aral Balkan
Browse files

Now setting installation flag at start and removing it at end for other...

Now setting installation flag at start and removing it at end for other processes to introspect status.
parent c4743480
......@@ -26,6 +26,11 @@ set -e
# Flow
#
flagStart(){
# Flag that we are not complete (in case another process needs to check)
touch /tmp/better.fyi.safari.installation.is.incomplete
}
greetings(){
echo "\n❤ Installing Better Safari Extension.\n"
}
......@@ -47,14 +52,21 @@ installSelf(){
echo "\n · Installation complete.\n\n"
}
flagEnd(){
# Remove the flag we set at the beginning to signal that we are complete.
rm /tmp/better.fyi.safari.installation.is.incomplete
}
#
# Main
#
main(){
flagStart
greetings
ensureDependenciesExist
installSelf
flagEnd
}
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