From 289f48d313587302ae0284011a3d083fb6f5c9c2 Mon Sep 17 00:00:00 2001 From: Benjamin Sherman Date: Thu, 9 Jan 2025 10:34:21 -0600 Subject: [PATCH] chore: a Codacy cleanup suggestion --- build_files/server-cockpit-zfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_files/server-cockpit-zfs.sh b/build_files/server-cockpit-zfs.sh index beaa7cb..829f771 100755 --- a/build_files/server-cockpit-zfs.sh +++ b/build_files/server-cockpit-zfs.sh @@ -8,7 +8,7 @@ dnf5 install -y cockpit-files cockpit-ostree # cockpit plugin for ZFS management curl --fail --retry 5 --retry-delay 5 --retry-all-errors -sSL -o /tmp/cockpit-zfs-manager-api.json \ "https://api.github.com/repos/45Drives/cockpit-zfs-manager/releases/latest" -CZM_TGZ_URL=$(cat /tmp/cockpit-zfs-manager-api.json | jq -r .tarball_url) +CZM_TGZ_URL=$(jq -r .tarball_url /tmp/cockpit-zfs-manager-api.json) curl -sSL -o /tmp/cockpit-zfs-manager.tar.gz "${CZM_TGZ_URL}" mkdir -p /tmp/cockpit-zfs-manager