#!/usr/bin/env bash yq() { docker run --rm -i -v "${NGINX_PATH}:/workdir" --user "$UID" mikefarah/yq:4 "$@" } config() { if [ "$(whoami)" = "root" ] then echo "It is not recommended to run this script as root. As a normal user, elevation will be prompted if needed." [[ "$YES_ALL" = "true" ]] && confirm="y" || read -rp "Continue anyway? (Y/n) " confirm " nginxpath /dev/null) for file in "${files[@]}"; do read -rp "Process \"$file\" (y/N)? " confirm