Last active
July 7, 2021 17:39
-
-
Save BonyChops/734d9c9a2f680fcfdab2afd43790342d to your computer and use it in GitHub Desktop.
Search for directory which is NOT a repository of git
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/sh | |
dirs=`find * -maxdepth 0 -type d ` | |
for dir in $dirs; | |
do | |
if [ ! -d "$dir/.git" ]; then | |
echo $dir | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment