fixed postprocessor args (#256)
* fixed postprocessor args * updated node builder version * temporary fix for https://github.com/nodejs/corepack/issues/612
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
# Node (pnpm) ------------------------------------------------------------------
|
# Node (pnpm) ------------------------------------------------------------------
|
||||||
FROM node:20-slim AS ui
|
FROM node:22-slim AS ui
|
||||||
ENV PNPM_HOME="/pnpm"
|
ENV PNPM_HOME="/pnpm"
|
||||||
ENV PATH="$PNPM_HOME:$PATH"
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
RUN corepack enable
|
RUN corepack prepare pnpm@10.0.0 --activate && corepack enable
|
||||||
COPY . /usr/src/yt-dlp-webui
|
COPY . /usr/src/yt-dlp-webui
|
||||||
|
|
||||||
WORKDIR /usr/src/yt-dlp-webui/frontend
|
WORKDIR /usr/src/yt-dlp-webui/frontend
|
||||||
|
|||||||
@@ -41,10 +41,10 @@ export class RPCClient {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
private argsSanitizer(args: string) {
|
private argsSanitizer(args: string): string[] {
|
||||||
return args
|
return args
|
||||||
.split(' ')
|
.split(' ')
|
||||||
.map(a => a.trim().replaceAll("'", '').replaceAll('"', ''))
|
.map(a => a.trim().replaceAll('"', ''))
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user