This commit is contained in:
Wang Sen Di
2025-12-10 10:23:00 +08:00
commit d5968af95c
24 changed files with 633 additions and 0 deletions

22
boot/conflict.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# shellcheck disable=SC1091
# shellcheck disable=SC2046
if [[ -d "/host/proc/1/" ]]; then source /apps/gitrce/hook/singleton.sh "$0"; fi
__main() {
:
}
# __main
nsenter --mount=/host/proc/1/ns/mnt bash <<<"$(declare -f __main | sed "\$a __main")"
__help() {
cat >/dev/null <<-'EOF'
bash -c 'cd /apps/gitrce/ && git pull -f; bash /apps/gitrce/boot/conflict.sh'
EOF
}