Skip to content

Commit

Permalink
frontend: Don't use pipe in hash tip
Browse files Browse the repository at this point in the history
The hash tip was rendered as
"Tip: cat update.gz false openssl dgst -sha1 -binary false base64"
where "false" should be "|".
Using "|" does not work, rewrite the command without "|".
  • Loading branch information
pothos committed Nov 30, 2022
1 parent c9c6a9f commit 05c67e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Packages/EditDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function EditDialog(props: EditDialogProps) {
type="text"
required
helperText={t(
'packages|Tip: cat update.gz | openssl dgst -sha1 -binary | base64'
'packages|Tip: base64 <(openssl dgst -sha1 -binary < update.gz)'
)}
fullWidth
/>
Expand All @@ -257,7 +257,7 @@ function EditDialog(props: EditDialogProps) {
type="text"
required
helperText={t(
'packages|Tip: cat update.gz | openssl dgst -sha256 -binary | base64'
'packages|Tip: base64 <(openssl dgst -sha256 -binary < update.gz)'
)}
fullWidth
/>
Expand Down

0 comments on commit 05c67e5

Please sign in to comment.