diff options
-rw-r--r-- | ChangeLog | 0 | ||||
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | TODO.md | 2 | ||||
-rwxr-xr-x | infection | 16 |
4 files changed, 15 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog deleted file mode 100644 index e69de29..0000000 --- a/ChangeLog +++ /dev/null @@ -1,2 +1,4 @@ -inception -========= +The Inception +============= + +Infects your homedir with configurations and applications. @@ -1,2 +1,4 @@ TODO ==== + +* update action with trusted keys support using custom gpg keydir @@ -32,14 +32,16 @@ function infection_init { # # This way we can easily check the integrity of our dotfiles # once the integrity of the apps repo is checked - if [ -e "$HOME/.dotfiles" ]; then - if [ ! -h "$HOME/.dotfiles" ] || [ "`readlink $HOME/.dotfiles`" != "apps/dotfiles" ]; then - mkdir -p $BACKUPS - mv $HOME/.dotfiles $BACKUPS/ - ( cd $HOME &> /dev/null && ln -s apps/dotfiles .dotfiles ) + if [ -e "$HOME/apps/dotfiles" ]; then + if [ -e "$HOME/.dotfiles" ]; then + if [ ! -h "$HOME/.dotfiles" ] || [ "`readlink $HOME/.dotfiles`" != "apps/dotfiles" ]; then + mkdir -p $BACKUPS + mv $HOME/.dotfiles $BACKUPS/ + ( cd $HOME &> /dev/null && ln -s apps/dotfiles .dotfiles ) + fi + else + ( cd $HOME &> /dev/null && ln -s apps/dotfiles .dotfiles ) fi - else - ( cd $HOME &> /dev/null && ln -s apps/dotfiles .dotfiles ) fi #if [ ! -e "$HOME/.dotfiles" ]; then |