a source link under source directory, strange? #1

Closed
rjyo opened this Issue Jun 2, 2011 · 4 comments

2 participants

@rjyo

I got something like:

$ ls -al
...
lrwxrwxrwx  1 jyo jyo   23 Jun  2 19:44 source -> /home/jyo/pusher/source
...

Anyway, thanks for this great work

@rjyo

In deploy()

run "ln -sf $path/source $path/current"

It works fine for the first time, but it would create a symbolic link named source under current since the second time. It would be nice to have a -n, which says "If the target_file or target_dir is a symbolic link, do not follow it. This is most useful with the -f option, to replace a symlink which may point to a directory."

run "ln -sfn $path/source $path/current"
@tj tj added a commit that closed this issue Jun 3, 2011
@tj tj ln -sfn. Closes #1 0c9fca1
@tj tj closed this in 0c9fca1 Jun 3, 2011
@tj
Sloth member
tj commented Jun 3, 2011

good call I didn't notice that at first, when I saw source in source I thought it was just an issue while I was writing it haha

@tj
Sloth member
tj commented Jun 3, 2011

you can deploy update

@rjyo

Thanks TJ. You are my hero!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment