From a4fd8ab27d091bd68080a744c3870bc5f72efd96 Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Wed, 26 Oct 2022 15:51:21 +0100 Subject: [PATCH] i hate bash --- entrypoint.sh | 2 +- src/pages/overlay.js | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index fd651fa..3504542 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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" diff --git a/src/pages/overlay.js b/src/pages/overlay.js index dfe85cb..8c491aa 100644 --- a/src/pages/overlay.js +++ b/src/pages/overlay.js @@ -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,