Skip to content

Instantly share code, notes, and snippets.

View AlexJameson's full-sized avatar

Alexander Yakovlev AlexJameson

View GitHub Profile
@AlexJameson
AlexJameson / download_latest_dictionary.sh
Created August 20, 2024 00:25
This script downloads the required dictionary from the latest release
#!/bin/bash
REPO="AlexJameson/software-development-dictionary-ru"
LATEST_RELEASE=$(curl -s https://api.github.com/repos/$REPO/releases/latest)
DOWNLOAD_URL=$(echo $LATEST_RELEASE | grep -o '"browser_download_url": "[^"]*sdd.txt"' | cut -d '"' -f 4)
VERSION=$(echo $LATEST_RELEASE | grep -o '"tag_name": "[^"]*"' | cut -d '"' -f 4)