From 1dfb8827f587547fec995f1393401e9cd7f3fb56 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Tue, 18 Jun 2024 10:08:37 +0200 Subject: [PATCH] shellcheck fixes --- usr/lib/archboot/cpio/hooks/licenses | 1 + usr/lib/archboot/cpio/hooks/net | 4 ++-- usr/lib/archboot/cpio/hooks/remote | 5 ++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/usr/lib/archboot/cpio/hooks/licenses b/usr/lib/archboot/cpio/hooks/licenses index c50cbdc7b..dc521ce26 100644 --- a/usr/lib/archboot/cpio/hooks/licenses +++ b/usr/lib/archboot/cpio/hooks/licenses @@ -123,6 +123,7 @@ openssh/LICENCE openssl/LICENSE.txt sqlite/license.txt e2fsprogs/MIT-LICENSE) +#shellcheck disable=SC2068 for i in ${_LICENSES[@]};do _file /usr/share/licenses/"${i}" done diff --git a/usr/lib/archboot/cpio/hooks/net b/usr/lib/archboot/cpio/hooks/net index f22f519cc..78299c8a0 100644 --- a/usr/lib/archboot/cpio/hooks/net +++ b/usr/lib/archboot/cpio/hooks/net @@ -10,8 +10,8 @@ _run () # add iproute 2, add openssl helper libraries _map _full_dir /usr/lib/{tc,engines-3} /usr/share/tc # add config for rustmap, no nmap available - echo "ulimit = 5000" >> ${_ROOTFS}/root/.rustscan.toml - echo "scripts = \"None\"" >> ${_ROOTFS}/root/.rustscan.toml + echo "ulimit = 5000" >> "${_ROOTFS}"/root/.rustscan.toml + echo "scripts = \"None\"" >> "${_ROOTFS}"/root/.rustscan.toml # add elinks defaults _file_rename /usr/share/archboot/net/etc/elinks/bookmarks /etc/elinks/bookmarks _file_rename /usr/share/archboot/net/etc/profile.d/elinks.sh /etc/profile.d/elinks.sh diff --git a/usr/lib/archboot/cpio/hooks/remote b/usr/lib/archboot/cpio/hooks/remote index 2863a0f17..0e773411d 100644 --- a/usr/lib/archboot/cpio/hooks/remote +++ b/usr/lib/archboot/cpio/hooks/remote @@ -23,8 +23,8 @@ _run () fi # switch port to ARCH and disable password login _file_rename /etc/ssh/sshd_config /etc/ssh/sshd_config - echo "Port 11838" >> ${_ROOTFS}/etc/ssh/sshd_config - echo "PasswordAuthentication no" >> ${_ROOTFS}/etc/ssh/sshd_config + echo "Port 11838" >> "${_ROOTFS}"/etc/ssh/sshd_config + echo "PasswordAuthentication no" >> "${_ROOTFS}"/etc/ssh/sshd_config _full_dir /usr/lib/libnfsidmap # fix libldap for /usr/lib/nfsidmap/umich_ldap.so _file /usr/lib/libldap.so{,.2} @@ -48,7 +48,6 @@ _run () /etc/systemd/system/ttyd.service _symlink /etc/systemd/system/multi-user.target.wants/ttyd.service \ /etc/systemd/system/ttyd.service - } # vim: set ft=sh ts=4 sw=4 et: