aboutsummaryrefslogtreecommitdiff
path: root/inception
diff options
context:
space:
mode:
Diffstat (limited to 'inception')
-rwxr-xr-xinception5
1 files changed, 3 insertions, 2 deletions
diff --git a/inception b/inception
index 3bb9d78..a5e4c5f 100755
--- a/inception
+++ b/inception
@@ -34,8 +34,9 @@ function inception_init {
# once the integrity of the apps repo is checked
if [ -e "$HOME/.dotfiles" ]; then
if [ ! -h "$HOME/.dotfiles" ] || [ "`readlink $HOME/.dotfiles`" != "apps/dotfiles" ]; then
- mv $HOME/.dotfiles $BACKUPS/
- ( cd $HOME && ln -s $HOME/apps/dotfiles .dotfiles )
+ mkdir -p $BACKUPS
+ mv $HOME/.dotfiles $BACKUPS/
+ ( cd $HOME && ln -s $HOME/apps/dotfiles .dotfiles )
fi
fi