mozamimy / chromium-updater Goto Github PK
View Code? Open in Web Editor NEWA bash script to ease upgrades of the Chromium web browser on OS X
A bash script to ease upgrades of the Chromium web browser on OS X
T/O
The base URL has recently changed, the script needs to be updated :
http://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?path=Mac/
There's also a continuous channel :
http://commondatastorage.googleapis.com/chromium-browser-continuous/index.html?path=Mac/
I want to introduce a test framework for this project.
Operation tests by hand hurt us ๐ข
However, I have no experience in test automation of shell script.
If someone knows good testing framework for bash and zsh, please help us.
I'm to lazy to fork and pull request, but here's a simple addition to the install.sh
script to ensure that it is run as root:
diff --git a/install.sh b/install.sh
index 05478d9..fafc465 100755
--- a/install.sh
+++ b/install.sh
@@ -3,6 +3,11 @@
# MongoDB OSX Launchctl Item
# Author: Andrei Railean (http://andrei.md)
+if [[ `whoami` != "root" ]]; then
+ echo "This script must be run as root; use sudo"
+ exit
+fi
+
echo "Installing MongoDB Launchctl Item and Restarting Mongo";
# create directories
@@ -18,4 +23,4 @@ sudo launchctl unload /System/Library/LaunchDaemons/org.mongo.mongod.plist
sudo launchctl load /System/Library/LaunchDaemons/org.mongo.mongod.plist
sudo launchctl start org.mongo.mongod
-echo "FINISHED";
\ No newline at end of file
+echo "FINISHED";
Thanks for the script btw :)
Got annoyed by chrome's os-no-longer-supported message, so I wanted to try chromium. With your script ...
But now the latest chromium does not support my OS X Lion at all.
Maybe you want to add a check for the OS version compatibility in your script ?
I have done this, try it and tell me what would you change: http://gist.github.com/dardo82/9e815aa00ab4c361e60c
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.