Skip to content

Commit

Permalink
Merge pull request #253 from Matze2/check_if_boot_dir_is_nonempty_for…
Browse files Browse the repository at this point in the history
…_sdcard_objects

Check if /boot is nonempty before evaluating sdcard_boot objects
  • Loading branch information
Garfonso authored Jan 16, 2025
2 parents 2ff023b + 63235a9 commit a774959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/parsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"multiline": true
},
"sdcard_boot_total": {
"command": "df /boot/*",
"command": "test -n \"$(ls /boot)\" && df /boot/*",
"regexp": "\\S+\\s+(\\d+).*\\/boot",
"post": "$1/1024",
"multiline": true
Expand All @@ -83,7 +83,7 @@
"multiline": true
},
"sdcard_boot_used": {
"command": "df /boot/*",
"command": "test -n \"$(ls /boot)\" && df /boot/*",
"regexp": "\\S+\\s+\\d+\\s+(\\d+).*\\/boot",
"post": "$1/1024",
"multiline": true
Expand Down

0 comments on commit a774959

Please sign in to comment.