blob: 9ac09974869c935aa1e10c6c6132ca3a4ab115d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
REALPATH=$(realpath $1)
[ ! -d "$REALPATH" ] && exit 1
for f in $REALPATH/*.git/description; do
CONTENT=$(cat $f)
[ "$CONTENT" = "Unnamed repository; edit this file 'description' to name the repository." ] && echo > $f
done
|