Update tools.func

This commit is contained in:
CanbiZ 2025-04-30 13:50:57 +02:00
parent bd8a4a565d
commit 80dea21259

View File

@ -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"