Moved scripts into scripts/

This commit is contained in:
Emmet
2024-12-28 11:03:24 -06:00
parent cedb24e74d
commit a8f84076e1
11 changed files with 18 additions and 18 deletions

20
scripts/pull.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/sh
# Automated script to update my non-primary systems
# config to be in sync with upstream git repo while
# preserving local edits to dotfiles via git stash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# Relax permissions temporarily so git can work
sudo $SCRIPT_DIR/scripts/soften.sh $SCRIPT_DIR;
# Stash local edits, pull changes, and re-apply local edits
pushd $SCRIPT_DIR/.. &> /dev/null;
git stash;
git pull;
git stash apply;
popd &> /dev/null;
# Permissions for files that should be owned by root
sudo $SCRIPT_DIR/harden.sh $SCRIPT_DIR;