Reorder commands logically
This commit is contained in:
parent
031a4091e3
commit
26d9f13723
|
@ -29,6 +29,7 @@ RUN \
|
|||
RUN pip install pyocd
|
||||
|
||||
RUN \
|
||||
wget "${KEIL_URL}" --progress=bar:force:noscroll -O MDK537.exe; \
|
||||
[ "$DEBUG" -eq 1 ] && { \
|
||||
apt-get update; \
|
||||
apt-get install -y \
|
||||
|
@ -56,7 +57,6 @@ RUN \
|
|||
[ -z "$1" ] && cat || echo "$1"; \
|
||||
echo "$heading"; \
|
||||
}; \
|
||||
wget "${KEIL_URL}" --progress=bar:force:noscroll -O MDK537.exe; \
|
||||
# Handle console output of MDK537 installer
|
||||
handle_output() { \
|
||||
# A pattern that is supposed to indicates that wine got stuck
|
||||
|
@ -83,9 +83,9 @@ RUN \
|
|||
}; \
|
||||
# Run actual MDK537 installer
|
||||
install_keil() { \
|
||||
printHeading "Starting ARM Keil installation"; \
|
||||
try="$1"; \
|
||||
logFile="$(mktemp)"; \
|
||||
printHeading "Starting ARM Keil installation"; \
|
||||
# Run installer asynchronously
|
||||
{ \
|
||||
{ \
|
||||
|
|
Loading…
Reference in a new issue