diff --git a/Makefile b/Makefile index c083ddf..6f04c74 100644 --- a/Makefile +++ b/Makefile @@ -134,7 +134,7 @@ ota-rb: ssh $(delegate) mkdir -p /tmp/patches-$(commit)/ scp ./0*.patch $(delegate):/tmp/patches-$(commit)/ scp ./ota.sh $(delegate):/tmp/ - ssh $(delegate) docker cp /tmp/patches-$(commit) $(container):/tmp/ + ssh $(delegate) docker cp /tmp/patches-$(shell echo $(commit) | cut -d / -f 1) $(container):/tmp/ ssh $(delegate) docker cp /tmp/ota.sh $(container):/usr/local/bin/ota ssh $(delegate) docker exec $(container) apk add --no-cache patch ssh $(delegate) docker exec $(container) ota $(commit)