Last active
July 22, 2025 01:39
-
-
Save LazyHatGuy/c0751d91f7278ed07eb8adc892f25295 to your computer and use it in GitHub Desktop.
Fixed status check
This file contains hidden or 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
| #! /usr/bin/fish | |
| for i in (find . -maxdepth 1 -type d -print0 | string split0) | |
| if not test "$i" = "." | |
| printf '\n===== %s =====\n' $i | |
| cd $i || exit 1 | |
| if not set --local git_status (git pull) | |
| echo $git_status | |
| echo "Failed to pull" | |
| end | |
| echo $git_status | |
| if not contains -- "$git_status" "Already up to date." | |
| makepkg -cCsi || exit 1 | |
| else | |
| echo Skipping... | |
| end | |
| cd .. || exit 1 | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment