Skip to content

Instantly share code, notes, and snippets.

View samsour's full-sized avatar
🐙

Sam Sauer samsour

🐙
View GitHub Profile
@samsour
samsour / setup.sh
Last active January 30, 2020 10:07 — forked from nmaier95/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