Theo Buehler <t...@theobuehler.org> wrote: > On Tue, Aug 13, 2019 at 09:59:28PM +0200, Christian Weisgerber wrote: > > * Remove syspatch files from the installed system and not the ramdisk. > > * Use extended globs and generally adopt to the style of this script. > > > > ok? > > I'm ok with your patch. One suggestion: > > > if [[ -f /mnt/usr/bin/clang ]]; then > > Could you add '&& -d /mnt/usr/lib/clang' to check whether the directory > exists before trying to cd into it (similarly for /mnt/usr/bin/gcc and > gcc-libs)?
Then might as well just -d only, and skip the -f But then people who mangle their system with symbolic links will lose Perhaps that is actually for the best....