3 ms·
From one of my actual bash functions: https://github.com/majewsky/devenv/blob/5ceaf51d0e9ba4c66d8c591004c6978d8a0e77cf/toplevel/profile#L315 https://github.com/
by majewsky 7y ago
From one of my actual bash functions: https://github.com/majewsky/devenv/blob/5ceaf51d0e9ba4c66d8c591004c6978d8a0e77cf/toplevel/profile#L315 https://github.com/majewsky/devenv/blob/5ceaf51d0e9ba4c66d8c...
Slightly shortened:
if [ "${IS_PROD}" = 1 -a "${COMMAND}" = upgrade -a "${I_KNOW_THIS_IS_PROD:-}" != yes ]; then
echo "Not upgrading a productive region without I_KNOW_THIS_IS_PROD=yes." >&2
return 1
fi