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/env bash | |
VERBOSE=false | |
# Logs conventional outputs | |
log() { | |
if [ "$VERBOSE" = true ]; then | |
echo "$@" | |
fi | |
} |
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/env bash | |
# Run this from the parent folder that holds all your projects | |
echo "Scanning $(pwd)..." | |
echo | |
for dir in */; do | |
# case: folder isn't a git repo | |
if [ ! -d "$dir/.git" ]; then | |
echo "🚫 $dir is not a Git repo (code here isn't tracked on GitHub)" |