Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dlgtho
on July 10, 2019
|
parent
|
context
|
favorite
| on:
How to write idempotent Bash scripts
True. In such case you need to create a different symlink within the same filesystem and then use "mv" to atomically overwrite the current symlink.
ln -sfn target new && mv -Tf new old
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
ln -sfn target new && mv -Tf new old