We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0545a1e commit a7e29feCopy full SHA for a7e29fe
scripts/bfb-tool
@@ -250,10 +250,25 @@ cd $WDIR
250
251
if [ $GET_INFO -eq 1 ]; then
252
$MLX_MKBFB -x -n info-v0 $bfb
253
- if [ $JSON -eq 1 ]; then
254
- cat dump-info-v0
+ if [ -e dump-info-v0 ]; then
+ if [ $JSON -eq 1 ]; then
255
+ cat dump-info-v0
256
+ else
257
+ cat dump-info-v0 | jq '.Members[] |"\(.Name): \(.Version)"' | tr -d '"'
258
+ fi
259
else
- cat dump-info-v0 | jq '.Members[] |"\(.Name): \(.Version)"' | tr -d '"'
260
261
+ cat << EOF
262
+{
263
+ "error": {
264
+ "message": "This BFB file does not contain version information."
265
+ }
266
+}
267
+EOF
268
269
+ error "This BFB file does not contain version information."
270
271
+ exit 1
272
fi
273
cd - > /dev/null 2>&1
274
0 commit comments