From 80dea212595287f253290f26c3753e9d5658fc38 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 30 Apr 2025 13:50:57 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/misc/tools.func b/misc/tools.func index 1c51644..4061e1a 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -888,6 +888,12 @@ function setup_gs() { $STD apt-get install -y build-essential libpng-dev zlib1g-dev ./configure >/dev/null && make && sudo make install >/dev/null local EXIT_CODE=$? + hash -r + if [[ ! -x "$(command -v gs)" ]]; then + if [[ -x /usr/local/bin/gs ]]; then + ln -sf /usr/local/bin/gs /usr/bin/gs + fi + fi rm -rf "$TMP_DIR"