Skip to content

Commit

Permalink
ci: install shfmt with dnf into openSuse container
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LaszloGombos authored and aafeijoo-suse committed Dec 15, 2022
1 parent 718e49e commit 037eda7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/container/Dockerfile-OpenSuse-latest
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 037eda7

Please sign in to comment.