[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Removing conffiles AND directories in /etc

On Sun, 26 Oct 2014, Jakub Wilk wrote:
> * Henrique de Moraes Holschuh <hmh@debian.org>, 2014-10-26, 10:57:
> >"rmdir >/etc/foo/bar/ >/dev/null 2>&1 || true"  is always a safe
> >operation...
> Instead of ignoring (and hiding) all errors, it's better use
> --ignore-fail-on-non-empty.

That's a GNU coreutils-ism :-)

But yes, it might be better to use "rmdir --ignore-fail-on-non-empty"

  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

Reply to: