i hate bash

This commit is contained in:
Liam 2022-10-26 15:51:21 +01:00
parent 5c20ab5ae7
commit a4fd8ab27d
2 changed files with 1 additions and 8 deletions

@ -14,7 +14,7 @@ echo "Checking that NEXT_PUBLIC_SITE_URL env-var exists"
test -n "$NEXT_PUBLIC_SITE_URL"
echo "Ignore permission errors below"
files=$(find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0)
files=echo $(find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0)
$files sed -i "s#APP_NEXT_PUBLIC_HTTP_PROXY#$NEXT_PUBLIC_HTTP_PROXY#g"
$files sed -i "s#APP_NEXT_PUBLIC_SITE_NAME#$NEXT_PUBLIC_SITE_NAME#g"

@ -185,11 +185,6 @@ export default class Overlay extends Component {
* @returns
*/
async updateData(id) {
console.log(
`Using url: ${
Utils.getWebsiteApi(this.state.websiteType).ApiUrl.PlayerData
}`
);
const data = await fetch(
Utils.getWebsiteApi(this.state.websiteType).ApiUrl.PlayerData.replace(
"%s",
@ -202,9 +197,7 @@ export default class Overlay extends Component {
}
);
try {
console.log(`status code: ${data.status}`);
const json = await data.json();
console.log(json);
this.setState({
loadingPlayerData: false,
id: id,