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

Bug#167185: tetex-bin: postrm script fails when homedirectory of user calling the script is non-existant



On Sat, Nov 02, 2002 at 10:05:29AM +0100, Christian Leutloff wrote:
> > Well, is "cd /var/cache" okay ?

Yes.

> why not use:
> 
> if [ -d /var/cache/fonts ]; then
>    pushd /var/cache/fonts
>    rm -rf source tfm pk
>    popd
>    rmdir /var/cache/fonts 2>/dev/null || true
> fi
> [...]
> 
> pushd/popd are builtins of bash.

And this is a /bin/sh script....

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

        Julian Gilbey, website: http://www.polya.uklinux.net/
   Debian GNU/Linux Developer, see: http://people.debian.org/~jdg/
     Visit http://www.thehungersite.com/ to help feed the hungry



Reply to: