Skip to content

Instantly share code, notes, and snippets.

View sascha-egerer's full-sized avatar
💭
I may be slow to respond.

Sascha Egerer sascha-egerer

💭
I may be slow to respond.
View GitHub Profile
@sascha-egerer
sascha-egerer / setup.sh
Last active October 24, 2018 11:42 — forked from manuelselbach/setup.sh
Install script for my personal tool chain (Mac OS)
#!/bin/bash
set -e
# insert a line to a file if the line does not already exist
# - first parameter is the file to insert the line
# - second parameter is the line to insert. It'll only be inserted if not already exists
# - third parameter is optional. This will override the search behavior.
# Instead of searching for the line of parameter 2 this term is used.
function insertLineIfNotExists {
FILE=$1