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