#!/bin/bash

set -euo pipefail

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

"${chroot_cmd[@]}" ngcpcfg --no-action-failure --no-check-origin build --ignore-shared-storage-check
