]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci: install shfmt with dnf into openSuse container
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Mon, 5 Dec 2022 23:42:37 +0000 (23:42 +0000)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Thu, 15 Dec 2022 14:23:24 +0000 (15:23 +0100)
Remove the special handling for shfmt binary.

No need to grab a specific version of the shfm binary that
is not tested together with the distribution.

test/container/Dockerfile-OpenSuse-latest

index 20259e3967f36eb850537e596d9773b32eb0d6a5..9007865dd1dcd7ff003940d0fa7a4e32befdb6a5 100644 (file)
@@ -13,11 +13,8 @@ RUN dnf -y install --setopt=install_weak_deps=False \
     strace libkmod-devel gcc bzip2 xz tar wget rpm-build make git bash-completion \
     sudo kernel dhcp-client qemu-kvm /usr/bin/qemu-system-$(uname -m) e2fsprogs \
     tcpdump iproute iputils kbd NetworkManager btrfsprogs tgt dbus-broker \
-    iscsiuio open-iscsi which ShellCheck procps pigz parted squashfs ntfsprogs \
+    iscsiuio open-iscsi which ShellCheck shfmt procps pigz parted squashfs ntfsprogs \
     && dnf -y remove dracut && dnf -y update && dnf clean all
 
-RUN shfmt_version=3.2.4; wget "https://github.com/mvdan/sh/releases/download/v${shfmt_version}/shfmt_v${shfmt_version}_linux_amd64" -O /usr/local/bin/shfmt \
-    && chmod +x /usr/local/bin/shfmt
-
 # Set default command
 CMD ["/usr/bin/bash"]