2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 18:50:28 +00:00

Change the regex in post.xcat.ng so that postscirpts with long filenames can still be downloaded from MN/SN to CN.

This commit is contained in:
Wai Yee Wong
2020-07-24 16:11:22 -04:00
parent 7739dcad5a
commit 3ecd60aa28

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>' | cut -d '"' -f 2)
return 0
}