Last active
March 16, 2021 17:53
-
-
Save BonfaceKilz/b40d8e102dd52d6027475ce21f4b2bcf to your computer and use it in GitHub Desktop.
Guix Upgrade packages
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 | |
### for loop example ### | |
for (( ; ; )) | |
do | |
echo "Press CTRL+C to stop..." | |
guix pull 2>&1 | tee /tmp/log.txt | |
$(grep failed /tmp/log.txt | cut -d' ' -f3) && \ | |
if [ 1 ] | |
then | |
break | |
fi | |
echo "Building:" | |
echo $(grep failed /tmp/log.txt | cut -d' ' -f3) | |
sleep 1 | |
guix build $(grep failed /tmp/log.txt | cut -d' ' -f3) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment