From c579d8a8c0e8caab97b5808e3847390c58d65f14 Mon Sep 17 00:00:00 2001 From: DevelopmentCats Date: Tue, 14 Oct 2025 10:55:14 -0500 Subject: [PATCH] fix: add zstd check for authentication tarball extraction --- registry/coder/modules/amazon-q/scripts/install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/registry/coder/modules/amazon-q/scripts/install.sh b/registry/coder/modules/amazon-q/scripts/install.sh index e3ae3361..f8e43e76 100644 --- a/registry/coder/modules/amazon-q/scripts/install.sh +++ b/registry/coder/modules/amazon-q/scripts/install.sh @@ -94,6 +94,13 @@ function install_amazon_q() { function extract_auth_tarball() { if [ -n "$ARG_AUTH_TARBALL" ]; then echo "Extracting auth tarball..." + + if ! command_exists zstd; then + echo "Error: zstd is required to extract the authentication tarball but is not installed." + echo "Please install zstd using the pre_install_script parameter." + exit 1 + fi + PREV_DIR="$PWD" echo "$ARG_AUTH_TARBALL" | base64 -d > /tmp/auth.tar.zst rm -rf ~/.local/share/amazon-q