Skip to main content
Topic: artix-archlinux-support post-install hook broken. (Read 502 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

artix-archlinux-support post-install hook broken.

Not sure where to report.

The `arch-repos-hook`script in the Arch Linux support package is marked as a POSIX sh script, but contains (very unnecessary) bashisms. It thus breaks on all systems that use dash or another more narrowly POSIX sh.

The script uses standalone double parens: https://github.com/koalaman/shellcheck/wiki/SC3006

I don't mean to be a nag, but this is the second time I've had this same type of problem happen on Artix (never any other distro), so it worries me that there might be an Artix guy out there who is systematically mismarking system-critical scripts!  ;)

Re: artix-archlinux-support post-install hook broken.

Reply #1
The post install script in question merely prints some messages so it's not terribly important. But yes it should actually be POSIX if /bin/sh is used.