Skip to content

Commit

Permalink
Only return dirname for repos
Browse files Browse the repository at this point in the history
  • Loading branch information
lildude committed Nov 12, 2019
1 parent 223683d commit 4366717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/github-backup-utils/ghe-backup-repositories
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ if [ -z "$GHE_SKIP_ROUTE_VERIFICATION" ]; then
bm_start "$(basename $0) - Verifying Routes"

cat $tempdir/*.rsync | sort | uniq > $tempdir/source_routes
(cd $backup_dir/ && find * -mindepth 5 -maxdepth 6 -type d -name \*.git -exec dirname {} \; | sort | uniq) > $tempdir/destination_routes
(cd $backup_dir/ && find * -mindepth 5 -maxdepth 6 -type d -name \*.git | while read -r line; do if [[ ! $line == */gist/* ]]; then dirname "$line"; else echo "$line"; fi; done | sort | uniq) > $tempdir/destination_routes

git --no-pager diff --unified=0 --no-prefix -- $tempdir/source_routes $tempdir/destination_routes || echo "Warning: One or more repository networks and/or gists were not found on the source appliance. Please contact GitHub Enterprise Support for assistance."

Expand Down

0 comments on commit 4366717

Please sign in to comment.