mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-21 01:42:15 +00:00
7af7b97a78
Render the selected profiles with an isolated database. Check the installer data and run the emitted post-install blocks against a private filesystem, including the EFI fallback and missing-loader paths. Run the native case from the source snapshot preserved before CI package builds.
38 lines
1020 B
Bash
38 lines
1020 B
Bash
#!/bin/sh
|
|
|
|
case ${0##*/} in
|
|
curl)
|
|
output=
|
|
url=
|
|
while [ "$#" -gt 0 ]; do
|
|
case $1 in
|
|
--fail) shift ;;
|
|
--retry|--max-time) shift 2 ;;
|
|
-o) output=$2; shift 2 ;;
|
|
http://*) url=$1; shift ;;
|
|
*) break ;;
|
|
esac
|
|
done
|
|
if [ "$#" -eq 0 ]; then
|
|
case $url in
|
|
*/postscripts/)
|
|
printf '<a href="xcatlib.sh">xcatlib.sh</a>\n'
|
|
exit 0 ;;
|
|
*/postscripts/xcatlib.sh)
|
|
exec cp /fixture/xcatlib.sh "$output" ;;
|
|
*/mypostscripts/mypostscript.node)
|
|
exec cp /fixture/mypostscript.node "$output" ;;
|
|
esac
|
|
fi
|
|
;;
|
|
logger|updateflag.awk|nmcli) exit 0 ;;
|
|
sleep)
|
|
case $* in
|
|
''|*[!0-9]*) ;;
|
|
*) exit 0 ;;
|
|
esac
|
|
;;
|
|
esac
|
|
printf '%s %s\n' "${0##*/}" "$*" >> /fixture/unexpected-command
|
|
exit 64
|