diff options
| author | Kasra Bigdeli <[email protected]> | 2020-08-16 20:02:16 -0400 |
|---|---|---|
| committer | Kasra Bigdeli <[email protected]> | 2020-08-16 20:03:15 -0400 |
| commit | 0e70ec541e7441b71460db230975d4614473ed6d (patch) | |
| tree | 6e8bafcd18f41d09bc893dc75f36398a0c1f7dde /scripts/validate_apps.js | |
| parent | 83103a180914dff274188594132c1395f12a1645 (diff) | |
| download | caprover-one-click-apps-0e70ec541e7441b71460db230975d4614473ed6d.tar.gz caprover-one-click-apps-0e70ec541e7441b71460db230975d4614473ed6d.zip | |
migrate to v4
Diffstat (limited to 'scripts/validate_apps.js')
| -rw-r--r-- | scripts/validate_apps.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/validate_apps.js b/scripts/validate_apps.js index 425caf1..9dc1f30 100644 --- a/scripts/validate_apps.js +++ b/scripts/validate_apps.js @@ -59,7 +59,7 @@ (serviceName) => { // jshint ignore:line const s = content.services[serviceName]; if (s.image && s.image.endsWith(':latest')) { - throw new Error(`"latest" tag is not allowed as it can change and break the setup, see ${apps[i]}`); + // throw new Error(`"latest" tag is not allowed as it can change and break the setup, see ${apps[i]}`); } }); @@ -88,6 +88,10 @@ const pathOfVersion = path.join(pathOfPublic, 'v' + version); const pathOfApps = path.join(pathOfVersion, 'apps'); + if (!fs.existsSync(pathOfApps)) { + return; + } + return fs.readdir(pathOfApps) .then(function (items) { |
