有趣的bash脚本随记
来自三线的随记
# see https://www.mediawiki.org/wiki/Parsoid/Setup#Configuration for var in $domains do if [ -z "${!var}" ]; then echo >&2 "The $var variable must not be an empty string"; fi cat <<EOT >> config.yaml - uri: '${!var}' domain: '${var:15}' EOT done
domains="${!PARSOID_DOMAIN_*} ${!PARSOID_MWAPIS_*}"