misc/cheat: Remove hard-coded GOROOT path.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2024-09-21 23:06:05 +07:00
parent ada6ce81ca
commit 77a23c4a7b
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -38,15 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
if [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "aarch64" ]; then
export LIBDIRSUFFIX="64"
export GOROOT="/usr/lib${LIBDIRSUFFIX}/go1.22.5/go"
export PATH="${GOROOT}/bin:${PATH}"
else
export GOROOT="/usr/lib/go1.22.5/go"
export PATH="${GOROOT}/bin:${PATH}"
fi
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0