aboutsummaryrefslogtreecommitdiff
path: root/inception
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-01-04 14:13:46 -0200
committerSilvio Rhatto <rhatto@riseup.net>2018-01-04 14:13:46 -0200
commit1cc320cfea23be43afb2bfe63f6729ee0ed29315 (patch)
tree67c598c4e061e04f36f64d0efe66644babfce081 /inception
parent78481580660c4e9dd2fcfe5cfc975e48338f3d8a (diff)
downloadapps-1cc320cfea23be43afb2bfe63f6729ee0ed29315.tar.gz
apps-1cc320cfea23be43afb2bfe63f6729ee0ed29315.tar.bz2
Inception: ensure backup folder exists
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