Skip to content

Instantly share code, notes, and snippets.

View MattRK's full-sized avatar

Matt Keller MattRK

View GitHub Profile
@bryanzak
bryanzak / ScriptRunner.sh
Last active May 9, 2017 21:44
Script Runner. This is a Launch Agent and script launcher so we can have a folder of scripts that are run anytime a user logs in. This is very barebones and not even remotely fancy, please feel free to share any feedback or suggestions you might have. Updated 2014-03-04 to support logging
#!/bin/bash
# save this file at /Library/yourorg/ScriptRunner.sh
script_path="${0}"
source_path=$(dirname "${script_path}")
chmod 777 "/var/log/yourorg-scriptrunner.log"
if [ -d "${source_path}/User Login Scripts" ]; then