Allow files with spaces (#12)

This commit is contained in:
Piers Beckley 2022-10-17 10:41:08 +01:00 committed by GitHub
parent 6bae380f8f
commit ae66602ce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View File

@ -17,3 +17,9 @@ jobs:
source: "tests/a.txt" source: "tests/a.txt"
target: "test-a.txt" target: "test-a.txt"
flags: "-f" flags: "-f"
- name: copy file with spaces
uses: canastro/copy-file-action@master
with:
source: "tests/path with spaces.txt"
target: "path-without-spaces.txt"

View File

@ -1,3 +1,3 @@
#!/bin/sh -l #!/bin/sh -l
cp $1 $2 $3 cp $1 "$2" "$3"

View File

@ -0,0 +1 @@
Test file for copying a file with spaces in its path