make.sh more visible error, header fix

This commit is contained in:
mrfry 2023-04-08 18:27:07 +02:00
parent 199c5fe4b1
commit d94bf74663
2 changed files with 3 additions and 1 deletions

View file

@ -3,7 +3,7 @@ scriptPath=$(dirname -- "${0}")
domainPath="${scriptPath}/../../data/domain" domainPath="${scriptPath}/../../data/domain"
if [ ! -f "${domainPath}" ]; then if [ ! -f "${domainPath}" ]; then
echo "${domainPath} does not exist!" echo -e "\033[0;41m${domainPath} does not exist!\033[0m"
exit 1 exit 1
fi fi
domain=$(cat "${domainPath}") domain=$(cat "${domainPath}")

View file

@ -2,6 +2,8 @@ import React from 'react'
import Head from 'next/head' import Head from 'next/head'
import { useQueryClient } from 'react-query' import { useQueryClient } from 'react-query'
import constants from '../constants'
export default function Header(props) { export default function Header(props) {
const { title } = props const { title } = props
const queryClient = useQueryClient() const queryClient = useQueryClient()