Skip to content

Instantly share code, notes, and snippets.

@LazyHatGuy
Last active July 22, 2025 01:39
Show Gist options
  • Select an option

  • Save LazyHatGuy/c0751d91f7278ed07eb8adc892f25295 to your computer and use it in GitHub Desktop.

Select an option

Save LazyHatGuy/c0751d91f7278ed07eb8adc892f25295 to your computer and use it in GitHub Desktop.
Fixed status check
#! /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