From ea3d48134b7ef6dbf70dfbd30084a9a760e413fc Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 30 Apr 2025 13:56:42 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 3 --- 1 file changed, 3 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 6c71f64..c93c5f7 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -849,12 +849,9 @@ function ensure_usr_local_bin_persist() { function setup_gs() { msg_info "Setup Ghostscript" - local TMP_DIR TMP_DIR=$(mktemp -d) - local CURRENT_VERSION CURRENT_VERSION=$(gs --version 2>/dev/null || echo "0") - local LATEST_VERSION RELEASE_JSON=$(curl -fsSL https://api.github.com/repos/ArtifexSoftware/ghostpdl-downloads/releases/latest) LATEST_VERSION=$(echo "$RELEASE_JSON" | grep '"tag_name":' | head -n1 | cut -d '"' -f4 | sed 's/^gs//') LATEST_VERSION_DOTTED=$(echo "$RELEASE_JSON" | grep '"name":' | head -n1 | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+')