Skip to content

Commit

Permalink
Use rsync instead of cp when activating versions
Browse files Browse the repository at this point in the history
The cp command is not capable of handling symlinks properly. The rync command treats symlinked directories on receiver as regular directories.
  • Loading branch information
Jason Morganson committed Mar 10, 2013
1 parent 9da3558 commit 22d2728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/n
Expand Up @@ -242,7 +242,7 @@ activate() {
local dir=$VERSIONS_DIR/$version
check_current_version
echo $active > $VERSIONS_DIR/.prev
cp -fr $dir/* $N_PREFIX
rsync -K -a $dir/* $N_PREFIX
}

#
Expand Down

0 comments on commit 22d2728

Please sign in to comment.