Skip to content

Commit 522a15c

Browse files
committed
updated gist-sync.sh
1 parent 5c564e4 commit 522a15c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/scripts/gist-sync.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ sed -n '
6060
s/^.* rename \(.*\.md\) => \(.*\.md\) ([[:digit:]]*%)$/\1 \2/p
6161
' |
6262
while read -r renamed_from renamed_to; do
63+
if [ "${renamed_from##*/}" = "${renamed_to##*/}" ]; then
64+
continue
65+
fi
6366
echo "Rename detected: $renamed_from => $renamed_to"
6467
if ! [ -f "$renamed_to" ]; then
6568
echo "Renamed file '$renamed_to' not found, skipping..."

0 commit comments

Comments
 (0)