2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-24 23:15:30 +00:00

Merge pull request #6780 from peterwywong/solution1_miss_postscripts

Change the regex in post.xcat.ng to accommodate long file names
This commit is contained in:
Mark Gurevich
2020-08-07 16:07:41 -04:00
committed by GitHub

View File

@ -134,7 +134,7 @@ function download_recursive()
[ "$?" -ne "0" ] && return 1
;;
esac
done < <(curl --fail --retry 20 --max-time 60 "${url}/" | grep -o '<a href="\([^"]*\)">\1</a>' | cut -d '"' -f 2)
done < <(curl --fail --retry 20 --max-time 60 "${url}/" | grep -o '<a href="\([^"]*\)">.*</a>' | egrep -v "O=D|Directory" | cut -d '"' -f 2)
return 0
}