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 -e | |
# given a commit, find immediate children of that commit. | |
for arg in "$@"; do | |
for commit in $(git rev-parse $arg^0); do | |
for child in $(git log --format='%H %P' --all | grep -F " $commit" | cut -f1 -d' '); do | |
git describe $child | |
done | |
done | |
done |
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 | |
# assign env var, if set | |
HB="${HOMEBREW_PREFIX:=/usr/local}" | |
find -L "${HB}/opt" -name 'INSTALL_RECEIPT.json' -maxdepth 2 -print > /tmp/homebrew-installed.txt | |
printf '' > /tmp/homebrew-installed-w-options.txt | |
NAME='' |