i hate bash
This commit is contained in:
parent
5c20ab5ae7
commit
a4fd8ab27d
@ -14,7 +14,7 @@ echo "Checking that NEXT_PUBLIC_SITE_URL env-var exists"
|
|||||||
test -n "$NEXT_PUBLIC_SITE_URL"
|
test -n "$NEXT_PUBLIC_SITE_URL"
|
||||||
|
|
||||||
echo "Ignore permission errors below"
|
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_HTTP_PROXY#$NEXT_PUBLIC_HTTP_PROXY#g"
|
||||||
$files sed -i "s#APP_NEXT_PUBLIC_SITE_NAME#$NEXT_PUBLIC_SITE_NAME#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
|
* @returns
|
||||||
*/
|
*/
|
||||||
async updateData(id) {
|
async updateData(id) {
|
||||||
console.log(
|
|
||||||
`Using url: ${
|
|
||||||
Utils.getWebsiteApi(this.state.websiteType).ApiUrl.PlayerData
|
|
||||||
}`
|
|
||||||
);
|
|
||||||
const data = await fetch(
|
const data = await fetch(
|
||||||
Utils.getWebsiteApi(this.state.websiteType).ApiUrl.PlayerData.replace(
|
Utils.getWebsiteApi(this.state.websiteType).ApiUrl.PlayerData.replace(
|
||||||
"%s",
|
"%s",
|
||||||
@ -202,9 +197,7 @@ export default class Overlay extends Component {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
console.log(`status code: ${data.status}`);
|
|
||||||
const json = await data.json();
|
const json = await data.json();
|
||||||
console.log(json);
|
|
||||||
this.setState({
|
this.setState({
|
||||||
loadingPlayerData: false,
|
loadingPlayerData: false,
|
||||||
id: id,
|
id: id,
|
||||||
|
Reference in New Issue
Block a user