Files
251123-biz-ml-px/boot/conflict.sh
Wang Sen Di 6ba67a8d85 -
2025-11-23 14:15:20 +08:00

23 lines
398 B
Bash

#!/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
}