Removed phoenix script, added and refactored some scripts

This commit is contained in:
Emmet
2024-04-08 17:55:51 -05:00
parent 4a86714308
commit 1cbfd7ab33
6 changed files with 69 additions and 232 deletions

21
pull.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/sh
# Automated script to update my non-primary systems
# to be in sync with upstream git repo while
# preserving local edits to dotfiles via git stash
# Relax permissions temporarily so git can work
sudo ~/.dotfiles/soften.sh ~/.dotfiles;
# Stash local edits, pull changes, and re-apply local edits
pushd ~/.dotfiles;
git stash;
git pull;
git stash apply;
popd;
# Permissions for files that should be owned by root
sudo ~/.dotfiles/harden.sh ~/.dotfiles;
# Synchronize system
~/.dotfiles/sync.sh;