Created
March 8, 2024 19:01
-
-
Save KuJoe/9594b909d139bbdf5c8ba0048a6af492 to your computer and use it in GitHub Desktop.
Libretranslate update script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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