]> gitweb.fluxo.info Git - rhatto/apps.git/commitdiff
Inception: deploy: do not hardcode home path
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 20 Oct 2015 20:25:21 +0000 (18:25 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 20 Oct 2015 20:25:21 +0000 (18:25 -0200)
inception

index cb89b2d59381386900ecb60cd5b28dd53c422237..7d75e3d20b4a74fd8babc39d71c6c60d86fc7d22 100755 (executable)
--- a/inception
+++ b/inception
@@ -60,12 +60,12 @@ elif [ "$1" == "deploy" ]; then
 
     # Sync apps
     if [ -e "$HOME/apps" ]; then
-      rsync -avz --delete $HOME/apps/ $REMOTE:$HOME/apps/
+      rsync -avz --delete $HOME/apps/ $REMOTE:apps/
     fi
 
     # Sync dotfiles
     if [ -e "$HOME/.dotfiles" ]; then
-      rsync -avz --delete $HOME/.dotfiles/ $REMOTE:$HOME/.dotfiles/
+      rsync -avz --delete $HOME/.dotfiles/ $REMOTE:.dotfiles/
     fi
 
     # Sync loaded modules