Skip to content

Commit

Permalink
Use bash
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa committed Apr 11, 2024
1 parent fa06020 commit 8fdf837
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ FROM node:21-alpine
COPY --from=foundry /usr/local/bin/cast /usr/local/bin/

COPY . /app
RUN npm config set update-notifier false \
RUN apk update \
&& apk add bash \
&& npm config set update-notifier false \
&& npm i -g zx \
&& cd /app \
&& npm i
Expand Down
2 changes: 1 addition & 1 deletion src/register/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async function hashRegister(register) {
for (const key of keys) {
merged += register[key];
}
const hash = await $`echo ${merged} | sha256sum | cut -d ' ' -f1`;
const hash = await $`echo "${merged}" | sha256sum | cut -d ' ' -f1`;
return {
origin: merged,
hash: hash.stdout.trim(),
Expand Down

0 comments on commit 8fdf837

Please sign in to comment.