2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 17:46:38 +00:00

Add egrep -v "O=D|Directory" to remove irrelevant files from being copied from MN to CN.

This commit is contained in:
Wai Yee Wong 2020-08-04 11:56:39 -04:00
parent 3ecd60aa28
commit b082229c39

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="\([^"]*\)">.*</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
}