diff --git a/firmware/hw_layer/mass_storage/create_ini_image.sh b/firmware/hw_layer/mass_storage/create_ini_image.sh index 73fedf718e..23d28e11f4 100755 --- a/firmware/hw_layer/mass_storage/create_ini_image.sh +++ b/firmware/hw_layer/mass_storage/create_ini_image.sh @@ -39,8 +39,10 @@ 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 --version # bash >=4.3 magic printf -v current_date '%(%Y-%m-%d)T' -1 + echo [${current_date}] fi # Put the zip inside the filesystem diff --git a/firmware/hw_layer/mass_storage/create_ini_image_compressed.sh b/firmware/hw_layer/mass_storage/create_ini_image_compressed.sh index 4e0d3fe8d4..17f7efc3aa 100755 --- a/firmware/hw_layer/mass_storage/create_ini_image_compressed.sh +++ b/firmware/hw_layer/mass_storage/create_ini_image_compressed.sh @@ -39,8 +39,10 @@ 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 --version # bash >=4.3 magic printf -v current_date '%(%Y-%m-%d)T' -1 + echo [${current_date}] fi # Put the zip inside the filesystem