Skip to content

Commit 01c68c9

Browse files
committed
fix: handle Scout 2.1.0 archive layout
1 parent 9885475 commit 01c68c9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

relink-1.1.0/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ RUN mkdir -p /opt/scout && wget -q \
3838
-O /tmp/Scout.zip && \
3939
unzip /tmp/Scout.zip -d /opt/scout && \
4040
rm /tmp/Scout.zip && \
41-
mv /opt/scout/Scout_Linux64/* /opt/scout && \
42-
rmdir /opt/scout/Scout_Linux64 && \
41+
scout_dir="$(find /opt/scout -mindepth 1 -maxdepth 1 -type d ! -name '__MACOSX' | head -n 1)" && \
42+
cp -a "${scout_dir}/." /opt/scout/ && \
43+
rm -rf "${scout_dir}" /opt/scout/__MACOSX && \
4344
printf '%s\n' '#!/usr/bin/env bash' 'set -euo pipefail' 'exec dotnet /opt/scout/Scout_Unix.dll "$@"' > /opt/scout/run_scout.sh && \
4445
chmod +x /opt/scout/run_scout.sh
4546

0 commit comments

Comments
 (0)