]> gitweb.fluxo.info Git - rhatto/apps.git/commitdiff
Inception: fix apps/dotfiles symlink handling
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 4 Jan 2018 16:16:16 +0000 (14:16 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 4 Jan 2018 16:16:16 +0000 (14:16 -0200)
inception

index a5e4c5ff939e279d7f7b4b63d6bf628b261cc6a1..cd9319f320d171e6dcb1e3944b8000ac4340ebc5 100755 (executable)
--- a/inception
+++ b/inception
@@ -36,7 +36,7 @@ function inception_init {
        if [ ! -h "$HOME/.dotfiles" ] || [ "`readlink $HOME/.dotfiles`" != "apps/dotfiles" ]; then
          mkdir -p $BACKUPS
          mv $HOME/.dotfiles $BACKUPS/
-         ( cd $HOME && ln -s $HOME/apps/dotfiles .dotfiles )
+         ( cd $HOME &> /dev/null && ln -s apps/dotfiles .dotfiles )
       fi
     fi