#!/bin/bash

set -Eeuo pipefail

declare -a chroot_cmd=()
if [[ "${1:-}" == "chroot" ]]; then
  chroot_cmd=("chroot" "/ngcp-fallback")
fi

"${chroot_cmd[@]}" ngcp-update-cfg-schema -f
