diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2018-01-04 14:13:46 -0200 |
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2018-01-04 14:13:46 -0200 |
| commit | 1cc320cfea23be43afb2bfe63f6729ee0ed29315 (patch) | |
| tree | 67c598c4e061e04f36f64d0efe66644babfce081 | |
| parent | 78481580660c4e9dd2fcfe5cfc975e48338f3d8a (diff) | |
| download | apps-1cc320cfea23be43afb2bfe63f6729ee0ed29315.tar.gz apps-1cc320cfea23be43afb2bfe63f6729ee0ed29315.tar.bz2 | |
Inception: ensure backup folder exists
| -rwxr-xr-x | inception | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
