1
0
Fork 0
mirror of synced 2024-06-29 19:41:03 +12:00

Formatting.

This commit is contained in:
mike12345567 2021-05-10 13:19:09 +01:00
parent 77b4b206f7
commit 502ae91aae

View file

@ -28,9 +28,7 @@ async function commandExistsWindows (command) {
}
function commandExists(command) {
return windows
? commandExistsWindows(command)
: commandExistsUnix(command)
return windows ? commandExistsWindows(command) : commandExistsUnix(command)
}
async function init() {
@ -41,18 +39,23 @@ async function init() {
return
}
if (mac) {
console.log("Please install docker by visiting: https://docs.docker.com/docker-for-mac/install/")
console.log(
"Please install docker by visiting: https://docs.docker.com/docker-for-mac/install/"
)
} else if (windows) {
console.log("Please install docker by visiting: https://docs.docker.com/docker-for-windows/install/")
console.log(
"Please install docker by visiting: https://docs.docker.com/docker-for-windows/install/"
)
} else if (linux) {
console.log("Beginning automated linux installation.")
await execute(`./hosting/scripts/linux/get-docker.sh`)
await execute(`./hosting/scripts/linux/get-docker-compose.sh`)
} else {
console.error("Platform unknown - please look online for information about installing docker for our OS.")
console.error(
"Platform unknown - please look online for information about installing docker for our OS."
)
}
console.log("Once installation complete please re-run the setup script.")
process.exit(-1)
}
init()