Skip to content

Commit

Permalink
Merge pull request #179 from fbelavenuto/fixing-checksum
Browse files Browse the repository at this point in the history
Fixing checksum
  • Loading branch information
fbelavenuto authored Sep 19, 2022
2 parents b567ad2 + b7443d3 commit e201dbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,9 @@ jobs:
run: |
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.img.zip" arpl.img
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.vmdk.zip" arpl*.vmdk
sha256sum .buildroot/output/images/bzImage .buildroot/output/images/rootfs.cpio.xz \
"arpl-${{ steps.build.outputs.VERSION }}.img.zip" "arpl-${{ steps.build.outputs.VERSION }}.vmdk.zip" \
> sha256sum
(cd .buildroot/output/images && sha256sum bzImage rootfs.cpio.xz) >> sha256sum
sha256sum "arpl-${{ steps.build.outputs.VERSION }}.img.zip" >> sha256sum
sha256sum "arpl-${{ steps.build.outputs.VERSION }}.vmdk.zip" >> sha256sum
# Upload artifact
- name: Upload
Expand All @@ -106,6 +105,7 @@ jobs:
path: |
arpl.img
arpl*.vmdk
sha256sum
retention-days: 5

# Publish a release if is a tag
Expand Down
2 changes: 1 addition & 1 deletion files/board/arpl/overlayfs/opt/arpl/menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ function updateMenu() {
fi
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
--infobox "Installing new files" 0 0
(cd /tmp && sha256sum -c sha256sum)
(cd /tmp && sha256sum --status -c sha256sum)
if [ $? -ne 0 ]; then
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
--msgbox "Checksum do not match!" 0 0
Expand Down

0 comments on commit e201dbb

Please sign in to comment.