Created
March 6, 2014 21:54
-
-
Save edwindotcom/9400506 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" == "" ]; then | |
echo 'appends pref to your profile pref.js' | |
echo 'Usage: ./addPref.bash [path to prefs.js]' | |
exit | |
fi | |
pref0="user_pref(\"services.sync.log.appender.file.logOnSuccess\", true);" | |
echo $pref0 >> $1 | |
echo "pref added" | |
tail -n 2 "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment