Make abra cp support multiple source files #27

Open
opened 2020-10-29 13:43:41 +00:00 by 3wordchant · 1 comment
Owner

abra app ... cp file1 file2 app:/path/

docker cp doesn't support this, but we could!

SOURCE="${*%${!#}}"
TARGET="${@:$#}"

tar cf - $SOURCE | docker cp - $TARGET

https://stackoverflow.com/a/64115079/14269772

`abra app ... cp file1 file2 app:/path/` `docker cp` doesn't support this, but we could! ``` SOURCE="${*%${!#}}" TARGET="${@:$#}" tar cf - $SOURCE | docker cp - $TARGET ``` https://stackoverflow.com/a/64115079/14269772
Author
Owner

For the time being, this works fine:

tar cf - *.html | abra app ... cp - app:/path/

(*.html is an example, could be anything tar will understand)

For the time being, this works fine: ``` tar cf - *.html | abra app ... cp - app:/path/ ``` (`*.html` is an example, could be anything `tar` will understand)
decentral1se added the
enhancement
label 2020-12-29 13:13:48 +00:00
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/abra#27
No description provided.