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:
parent
3ecd60aa28
commit
b082229c39
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user