Skip to content

Instantly share code, notes, and snippets.

@KuJoe
Created February 22, 2024 08:12
Show Gist options
  • Save KuJoe/342ad610c62d7e9cb0d5ed1dd793c0f7 to your computer and use it in GitHub Desktop.
Save KuJoe/342ad610c62d7e9cb0d5ed1dd793c0f7 to your computer and use it in GitHub Desktop.
Automatic update script for Libretranslate
#!/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