From bd23f3afb6238175924be485d77dedca381d278c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 28 Jan 2018 11:10:26 -0200 Subject: Updates inception --- ChangeLog | 0 README.md | 6 ++++-- TODO.md | 2 ++ infection | 16 +++++++++------- 4 files changed, 15 insertions(+), 9 deletions(-) delete mode 100644 ChangeLog diff --git a/ChangeLog b/ChangeLog deleted file mode 100644 index e69de29..0000000 diff --git a/README.md b/README.md index edceabd..caaac6c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ -inception -========= +The Inception +============= + +Infects your homedir with configurations and applications. diff --git a/TODO.md b/TODO.md index 74e5cc0..928a9f0 100644 --- a/TODO.md +++ b/TODO.md @@ -1,2 +1,4 @@ TODO ==== + +* update action with trusted keys support using custom gpg keydir diff --git a/infection b/infection index fc29b1f..0f9e9ad 100755 --- a/infection +++ b/infection @@ -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 -- cgit v1.2.3