Skip to content

Commit

Permalink
fixed autoupdater usb regex
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2005 committed Oct 17, 2020
1 parent edaa652 commit 4c3b830
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/crankshaft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
BUILDHASH: ${{ steps.get_version.outputs.buildhash }}
BUILDBRANCH: ${{ steps.get_version.outputs.buildbranch }}
BUILDDATE: ${{ steps.get_version.outputs.builddate }}
IMG_VERSION: '${{ steps.get_version.outputs.builddate }}-${{ steps.get_version.outputs.version }}-${{ steps.get_version.outputs.buildhash }}'
IMG_VERSION: '${{ steps.get_version.outputs.builddate }}-${{ steps.get_version.outputs.buildbranch }}-${{ steps.get_version.outputs.buildhash }}'
-
name: Run build
id: build-docker
Expand Down
2 changes: 1 addition & 1 deletion prebuilts
Submodule prebuilts updated 1 files
+1 −1 latestimage/latest
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ for FSMOUNTPOINT in $(ls -d /media/USBDRIVES/*); do
fi

if [ $ALLOW_USB_FLASH -eq 1 ]; then
UPDATEZIP=$(ls -Art /media/USBDRIVES/${PARTITION} | grep crankshaft-ng | grep .zip | grep -v md5 | grep -v ^._ | tail -1)
UPDATEZIP=$(ls -Art /media/USBDRIVES/${PARTITION} | grep 'crankshaft-ng\|csng' | grep .zip | grep -v md5 | grep -v ^._ | tail -1)
FLAG=0
if [ ! -z ${UPDATEZIP} ]; then
UNPACKED=$(unzip -l /media/USBDRIVES/${PARTITION}/${UPDATEZIP} | grep crankshaft-ng | grep .img | grep -v md5 | grep -v ^._ | awk {'print $4'})
UNPACKED=$(unzip -l /media/USBDRIVES/${PARTITION}/${UPDATEZIP} | grep 'crankshaft-ng\|csng' | grep .img | grep -v md5 | grep -v ^._ | awk {'print $4'})
if [ ! -f /media/USBDRIVES/${PARTITION}/${UNPACKED} ]; then
show_clear_screen
echo "" > /dev/tty3
Expand Down Expand Up @@ -104,7 +104,7 @@ for FSMOUNTPOINT in $(ls -d /media/USBDRIVES/*); do
FLAG=1
fi
fi
UPDATEFILE=$(ls -Art /media/USBDRIVES/${PARTITION} | grep crankshaft-ng | grep .img | grep -v md5 | grep -v ^._ | tail -1)
UPDATEFILE=$(ls -Art /media/USBDRIVES/${PARTITION} | grep 'crankshaft-ng\|csng' | grep .img | grep -v md5 | grep -v ^._ | tail -1)
if [ ! -z ${UPDATEFILE} ]; then
if [ ${FLAG} -ne 1 ]; then
show_clear_screen
Expand Down

0 comments on commit 4c3b830

Please sign in to comment.