Skip to content

Commit

Permalink
Rename remote binary when BINARY_ZIP_PATH is set (#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon authored Nov 19, 2024
1 parent e352e6f commit 51a86c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if [[ -n "$BINARY_URL" && ! -f "/bin/$PROJECT_BIN" ]]; then
*"tar archive"*) mv /bin/$PROJECT_BIN /bin/$PROJECT_BIN.tar && tar -xf /bin/$PROJECT_BIN.tar -C /bin && rm /bin/$PROJECT_BIN.tar;;
*"zip archive data"*) mv /bin/$PROJECT_BIN /bin/$PROJECT_BIN.zip && unzip /bin/$PROJECT_BIN.zip -d /bin && rm /bin/$PROJECT_BIN.zip;;
esac
[ -n "$BINARY_ZIP_PATH" ] && mv /bin/${BINARY_ZIP_PATH} /bin
[ -n "$BINARY_ZIP_PATH" ] && mv /bin/${BINARY_ZIP_PATH} /bin/$PROJECT_BIN
chmod +x /bin/$PROJECT_BIN

if [ -n "$WASMVM_URL" ]; then
Expand Down

0 comments on commit 51a86c9

Please sign in to comment.