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

* 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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 149 additions and 26 deletions
e2e/src

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;