Changeset 1957


Ignore:
Timestamp:
Jan 3, 2009, 12:59:58 AM (16 years ago)
Author:
price
Message:

fix a shell conditional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/git-migration/git-migrate-fast.sh

    r1956 r1957  
    1717
    1818sed -n 's/^create repository // p' ../rules | while read repo; do
    19     ! [ -e "$repo/refs/heads/tags" ] || \
    20         cp -a "$repo/refs/heads/tags/." "$repo/refs/tags" && \
    21         rm -rf "$repo/refs/heads/tags"
     19    if [ -e "$repo/refs/heads/tags" ]; then
     20        cp -a "$repo/refs/heads/tags/." "$repo/refs/tags"
     21        rm -rf "$repo/refs/heads/tags"
     22    fi
    2223done
    2324
Note: See TracChangeset for help on using the changeset viewer.