On Thu, Sep 10, 2009 at 08:53:27AM +0100, Stephen Gran wrote: > This one time, at band camp, brian m. carlson said: > > Obviously, the rm line should check first to see whether sites-enabled > > exists, and if not, do nothing. > > It's not the rm line, it's the rmdir line, and I don't see how it can > fail:
This is correct. > raddb/Makefile: > clean: > rm -f sites-enabled/inner-tunnel sites-enabled/default > @rmdir sites-enabled > > The -f will make rm succeed even if the file doesn't exist: > > sg...@samosa:~$ ls > sg...@samosa:~$ rm -f test/a test/b > sg...@samosa:~$ echo $? > 0 > sg...@samosa:~$ > > And the rmdir has an 'ignore errors' marker. Can you maybe do some > debugging to figure out what is really going wrong? It's not the "ignore errors" marker; it's the "don't print the command" marker. You probably want "@-" at the beginning of the command instead. -- brian m. carlson / brian with sandals: Houston, Texas, US +1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
signature.asc
Description: Digital signature