Skip to content

Commit 71c1774

Browse files
committed
修改
1 parent 82ecc5f commit 71c1774

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@ RUN git clone https://git.code.sf.net/p/stm32flash/code stm32flash-code && \
2121
RUN git clone https://github.com/RT-Thread/env.git /env/tools/scripts && \
2222
git clone https://github.com/RT-Thread/packages.git /env/packages/packages
2323
COPY entrypoint.sh /entrypoint.sh
24-
COPY entrypoint.sh /entrypoint.sh
2524
RUN chmod +x /entrypoint.sh
2625
ENTRYPOINT ["/entrypoint.sh"]

entrypoint.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
#!/bin/sh
2-
if [ ! -d ~/.env ]; then
3-
ln /env ~/.env -s
4-
fi
5-
export PATH=$PATH:~/.env/tools/scripts
2+
ln /env $HOME/.env -s
3+
export PATH=$PATH:$HOME/.env/tools/scripts
64
sed -i -e 's/CONFIG_SYS_PKGS_DOWNLOAD_ACCELERATE=y/CONFIG_SYS_PKGS_DOWNLOAD_ACCELERATE=n/g' /env/tools/scripts/cmds/.config
7-
pwd
8-
if [ -f SConstruct ]; then
5+
if [ -r SConstruct ]; then
96
pkgs --printenv
107
pkgs --list
118
pkgs --update
@@ -19,5 +16,6 @@ if [ -f SConstruct ]; then
1916
scons
2017
fi
2118
else
19+
pkgs --help
2220
echo "fogret checkout?"
2321
fi

0 commit comments

Comments
 (0)