Skip to content

Commit

Permalink
Ignore boot mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Nov 24, 2023
1 parent d4b17ad commit df78ca2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "domcloud-bridge",
"version": "0.32.2",
"version": "0.32.3",
"description": "Deployment runner for DOM Cloud",
"main": "app.js",
"engines": {
Expand Down
5 changes: 3 additions & 2 deletions sudoutil.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,12 @@ switch (cli.args.shift()) {
})).to(env.SHELLCHECK_TMP);
exit(0);
case 'SHELL_TEST':
var isDfFull = function (df) {
var r = /([\d\.]+[GMK]?)\s+\d+%/g;
var isDfFull = function (/** @type {string} */ df) {
var r = /([\d\.]+[GMK]?)\s+\d+% +(.+)/g;
var m;
while (m = r.exec(df)) {
if (!m) return false;
if ((m[2] || '').startsWith('/boot')) return false;
var size = parseFloat(m[1].slice(0, -1));
var unit = m[1].slice(-1);
size = size * (unit === 'T' ? 1024 * 1024 : unit === 'G' ? 1024 : unit === 'M' ? 1 : 0.001);
Expand Down

0 comments on commit df78ca2

Please sign in to comment.