Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit c0cd962

Browse files
authored
Update install.sh
1 parent 30b129d commit c0cd962

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ if [[ "$HAS_MAKE" -eq 1 ]]; then
4545
fi
4646
else
4747
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo "dev")
48+
BUILDENV=$(go version || echo "linux")
4849
go build -o "$BINARY_NAME" -ldflags="-X 'github.com/xeyossr/anitr-cli/internal/update.version=$VERSION' -X 'github.com/xeyossr/anitr-cli/internal/update.buildEnv=$BUILDENV'"
4950
if [[ $EUID -ne 0 ]]; then
5051
sudo install -Dm755 "$BINARY_NAME" "$INSTALL_DIR/$BINARY_NAME"
@@ -61,4 +62,4 @@ echo -n "📌 Versiyon: "
6162
echo -e "\n🧹 Geçici dosyalar temizleniyor..."
6263
rm -rf "$CLONE_DIR"
6364

64-
echo "🎉 Kurulum tamamlandı.\n"
65+
echo "🎉 Kurulum tamamlandı.\n"

0 commit comments

Comments
 (0)