Skip to content

Commit 1d3688f

Browse files
authored
Update ghe-backup-repositories
Updated rsync file sorting to loop through, to overcome `ambiguous redirect` error in Debian.
1 parent efc116f commit 1d3688f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

share/github-backup-utils/ghe-backup-repositories

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,9 @@ bm_end "$(basename $0) - Special Data Directories Sync"
366366

367367
if [ -z "$GHE_SKIP_ROUTE_VERIFICATION" ]; then
368368
bm_start "$(basename $0) - Verifying Routes"
369-
< $tempdir/*.rsync uniq | sort | uniq > $tempdir/source_routes
369+
for file_lst in $tempdir/*.rsync; do
370+
< $file_lst sort | uniq
371+
done |sort|uniq > $tempdir/source_routes
370372
(cd $backup_dir/ && find * -mindepth 5 -maxdepth 6 -type d -name \*.git | fix_paths_for_ghe_version | uniq | sort | uniq) > $tempdir/destination_routes
371373

372374
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."

0 commit comments

Comments
 (0)