@sysnee/pgs 0.1.7-rc.7 → 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 +7 -0
- package/package.json +1 -1
package/manager.js
CHANGED
|
@@ -239,6 +239,13 @@ function initialSetup() {
|
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
function installDocker() {
|
|
242
|
+
|
|
243
|
+
try {
|
|
244
|
+
execSync('docker info', { stdio: 'pipe' })
|
|
245
|
+
console.log('Docker already installed')
|
|
246
|
+
return
|
|
247
|
+
} catch (_) {}
|
|
248
|
+
|
|
242
249
|
console.log('Installing Docker...')
|
|
243
250
|
execSync('curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh', { stdio: 'inherit' })
|
|
244
251
|
execSync('rm get-docker.sh')
|