Skip to content

Instantly share code, notes, and snippets.

@KuJoe
Created March 8, 2024 19:01
Show Gist options
  • Save KuJoe/9594b909d139bbdf5c8ba0048a6af492 to your computer and use it in GitHub Desktop.
Save KuJoe/9594b909d139bbdf5c8ba0048a6af492 to your computer and use it in GitHub Desktop.
Libretranslate update script
#!/bin/bash
/opt/libretranslate/.local/bin/argospm update
/opt/libretranslate/.local/bin/argospm list > list.txt
/opt/libretranslate/.local/bin/argospm search >> list.txt
character=":"
sed -i "s/${character}.*//" list.txt
sort list.txt | uniq -u > update_list.txt
for line in $(cat update_list.txt); do
/opt/libretranslate/.local/bin/argospm install "$line"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment