Closed djblue closed 9 years ago
Ah, right exit values– I'm not surprised the snippet failed. You'd suppress that with:
[[ config.json.template -nt config.json ]] && cp config.json.template config.json || true
I am surprised that cp -n
doesn't return success when it doesn't do anything, but you should be able to suppress it the same way:
cp -n config.json.template config.json || true
@zeke Does this work for you?
Works once. Fails on the second run.
Using the following snippet has the same effect. Works once, then fails.