RUSEFI virtual drive to spell out firmware version fix #4458

# Mac OS comes with Bash version 3 which is quite limiting and lack key features
This commit is contained in:
rusefillc 2022-08-18 19:46:42 -04:00
parent 0c2a8096e9
commit 3ce0246962
2 changed files with 14 additions and 4 deletions

View File

@ -35,8 +35,13 @@ echo "URL=${BOARD_SPECIFIC_URL}" >> hw_layer/mass_storage/wiki.temp
cp hw_layer/mass_storage/filesystem_contents/README.template.txt hw_layer/mass_storage/readme.temp
echo ${BOARD_SPECIFIC_URL} >> hw_layer/mass_storage/readme.temp
# bash >=4.3 magic
printf -v current_date '%(%Y-%m-%d)T\n' -1
if [[ $OSTYPE == 'darwin'* ]]; then
# Mac OS comes with Bash version 3 which is quite limiting and lack key features
current_date='huh-MAC'
else
# bash >=4.3 magic
printf -v current_date '%(%Y-%m-%d)T\n' -1
fi
# Put the zip inside the filesystem
mcopy -i $IMAGE $ZIP ::

View File

@ -35,8 +35,13 @@ echo "URL=${BOARD_SPECIFIC_URL}" >> hw_layer/mass_storage/wiki.temp
cp hw_layer/mass_storage/filesystem_contents/README.nozip.template.txt hw_layer/mass_storage/readme.temp
echo ${BOARD_SPECIFIC_URL} >> hw_layer/mass_storage/readme.temp
# bash >=4.3 magic
printf -v current_date '%(%Y-%m-%d)T\n' -1
if [[ $OSTYPE == 'darwin'* ]]; then
# Mac OS comes with Bash version 3 which is quite limiting and lack key features
current_date='huh-MAC'
else
# bash >=4.3 magic
printf -v current_date '%(%Y-%m-%d)T\n' -1
fi
# Put the zip inside the filesystem
mcopy -i $IMAGE $FULL_INI ::