osx/install.sh

23 lines
552 B
Bash
Raw Normal View History

2019-11-27 04:28:59 +00:00
#!/bin/bash
function run_install {
REPO="https://github.com/sneak/osximage.git"
DEST="$TMPDIR/osximage"
if [[ ! -d "$DEST" ]]; then
git clone "$REPO" "$DEST"
fi
rsync -avP "$DEST/custompkg/root/etc/skel/" "$HOME/"
# run modular setup scripts
for FN in $HOME/Library/user-setup/*.sh ; do
echo "new-user-setup: starting $(basename $FN)..."
bash "$FN" 2>&1 | tee -a $HOME/Library/Logs/user-setup.log
rm "$FN"
echo "new-user-setup: removed $(basename $FN)..."
done
}
run_install