@sysnee/pgs 0.1.7-rc.8 → 0.1.7-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/manager.js +3 -2
- package/package.json +1 -1
package/manager.js
CHANGED
|
@@ -240,10 +240,11 @@ function initialSetup() {
|
|
|
240
240
|
|
|
241
241
|
function installDocker() {
|
|
242
242
|
|
|
243
|
-
|
|
243
|
+
try {
|
|
244
|
+
execSync('docker info', { stdio: 'pipe' })
|
|
244
245
|
console.log('Docker already installed')
|
|
245
246
|
return
|
|
246
|
-
}
|
|
247
|
+
} catch (_) {}
|
|
247
248
|
|
|
248
249
|
console.log('Installing Docker...')
|
|
249
250
|
execSync('curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh', { stdio: 'inherit' })
|