Initial commit

This commit is contained in:
2025-09-10 12:23:32 +03:00
commit 24bc730ff2
4 changed files with 51 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
URL="ftp://ftp.gnu.org/gnu/aspell/dict/en/"
# Get version number from FTP server
VERSION=$(curl -s --list-only "$URL" | grep -E '^aspell6-en-[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}-0.tar.bz2$' | cut -d '-' -f3 | sort -V | tail -n1)
# Remove '-0.tar.gz' suffix from VERSION variable
VERSION=${VERSION//-0.tar.bz2/}
echo "$VERSION"