OSDN Git Service

Adding linting for initcpio scripts
authorDavid Runge <dvzrv@archlinux.org>
Sat, 11 Jul 2020 16:13:20 +0000 (18:13 +0200)
committerDavid Runge <dvzrv@archlinux.org>
Sat, 11 Jul 2020 18:58:01 +0000 (20:58 +0200)
commite2032db4e74c66d3f8bcba97497ccb5fff88df4b
tree6b1fa957e952916ed34ff101cd277c11c3a9437b
parent550aca712432c6708fc48db5e9a8aaba9ef1e0c1
Adding linting for initcpio scripts

archiso/initcpio/install/*:
Setting bash shebang for all scripts and making them comform with shellcheck.

archiso/initcpio/{hooks,script}/*:
Setting ash shebang for all scripts and making them comform with shellcheck (for dash, as shellcheck has no ash specific
ruleset). Essentially the ash based scripts should be POSIX compliant as much as possible to have an easier time
writing, debugging and maintaining them.
Ensuring that variables are not treated as options and introducing variable quoting.

.gitlab-ci.yml:
Integrating shellcheck for initcpio scripts.

Closes #32
17 files changed:
.gitlab-ci.yml
archiso/initcpio/hooks/archiso
archiso/initcpio/hooks/archiso_loop_mnt
archiso/initcpio/hooks/archiso_pxe_common
archiso/initcpio/hooks/archiso_pxe_http
archiso/initcpio/hooks/archiso_pxe_nbd
archiso/initcpio/hooks/archiso_pxe_nfs
archiso/initcpio/hooks/archiso_shutdown
archiso/initcpio/install/archiso
archiso/initcpio/install/archiso_kms
archiso/initcpio/install/archiso_loop_mnt
archiso/initcpio/install/archiso_pxe_common
archiso/initcpio/install/archiso_pxe_http
archiso/initcpio/install/archiso_pxe_nbd
archiso/initcpio/install/archiso_pxe_nfs
archiso/initcpio/install/archiso_shutdown
archiso/initcpio/script/archiso_shutdown