fix(cli): allow special characters in paths (#13282)

* fix(cli): commas in import paths

* adding more test cases
This commit is contained in:
Jonathan Jogenfors
2024-10-09 18:15:50 +02:00
committed by GitHub
parent 057510af0a
commit b7dcc97712
5 changed files with 149 additions and 26 deletions

View File

@@ -68,6 +68,7 @@ export const immichCli = (args: string[]) =>
executeCommand('node', ['node_modules/.bin/immich', '-d', `/${tempDir}/immich/`, ...args]).promise;
export const immichAdmin = (args: string[]) =>
executeCommand('docker', ['exec', '-i', 'immich-e2e-server', '/bin/bash', '-c', `immich-admin ${args.join(' ')}`]);
export const specialCharStrings = ["'", '"', ',', '{', '}', '*'];
const executeCommand = (command: string, args: string[]) => {
let _resolve: (value: CommandResponse) => void;