diff --git a/package-lock.json b/package-lock.json index 03c2e17..aff1e77 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "domcloud-bridge", - "version": "0.29.0", + "version": "0.32.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "domcloud-bridge", - "version": "0.29.0", + "version": "0.32.3", "license": "MIT", "dependencies": { "axios": "^1.5.1", diff --git a/package.json b/package.json index 46ea619..77999c0 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/sudoutil.js b/sudoutil.js index f3f06b7..6f4e5d3 100755 --- a/sudoutil.js +++ b/sudoutil.js @@ -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);