Skip to content

Commit 69d1573

Browse files
committed
Move argument
1 parent c3c1587 commit 69d1573

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tools/docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ COPY entrypoint.sh $LIBBUILDER_PATH/entrypoint.sh
7575

7676
WORKDIR /opt/esp/lib-builder
7777
ENTRYPOINT [ "/opt/esp/lib-builder/entrypoint.sh" ]
78-
CMD [ "python3", "tools/config_editor/app.py", "-c", "/arduino-esp32" ]
78+
CMD [ "python3", "tools/config_editor/app.py" ]

tools/docker/entrypoint.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ then
1515
done
1616
fi
1717

18-
# Check if /arduino-esp32 exists
18+
# Check if the mount point /arduino-esp32 exists
1919
if [ -d "/arduino-esp32" ]; then
20-
# If it exists, add the -p argument
21-
exec "$@" -p `stat -c "%u:%g" /arduino-esp32`
20+
# If it exists, add the -p and -c arguments
21+
exec "$@" -c /arduino-esp32 -p `stat -c "%u:%g" /arduino-esp32`
2222
else
23-
# If it doesn't exist, just execute the command without the -p argument
23+
# If it doesn't exist, just execute the command without them
2424
exec "$@"
2525
fi

0 commit comments

Comments
 (0)