From dc6dc8d3ca2090eb1f0275011408ec333e676fe5 Mon Sep 17 00:00:00 2001 From: Dmitrii Date: Sat, 22 Oct 2016 17:45:57 -0400 Subject: [PATCH] fixed indentation and filedirectory why did you try using "\" instead of "/" in your mkdir? indentation fixed. --- NadekoInstaller.sh | 49 +++++++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/NadekoInstaller.sh b/NadekoInstaller.sh index 226c6f1bb..0663cb6aa 100644 --- a/NadekoInstaller.sh +++ b/NadekoInstaller.sh @@ -1,24 +1,29 @@ #!/bin/bash - echo "NadekoBot 1.0 Download" - echo "Mirai was here." - if git 2>&1 >/dev/null; - then echo "Git Installed." - else echo "Git is not installed. Please install Git." | exit 1 - if dotnet 2>&1 >/dev/null; - then echo "Dotnet installed." - else echo "Dotnet is not installed. Please install dotnet." | exit 1 - mkdir NadekoInstall_Temp - echo "Created NadekoBot-temp folder" - cd NadekoInstall_Temp - echo "Downloading NadekoBot, please wait." - git clone -b 1.0 --recursive -v https://github.com/Kwoth/NadekoBot.git - echo "NadekoBot downloaded." - cd NadekoInstall_Temp\NadekoBot\ - dotnet restore >nul 2>&1 - cd NadekoInstall_Temp\NadekoBot\src\NadekoBot\ - echo "Building NadekoBot" - dotnet build --configuration Release - echo "Setting up NadekoBot" - dotnet build --configuration Release - echo "Done. You can close the window." + +echo "NadekoBot 1.0 Download" +echo "Mirai was here." + +if git 2>&1 >/dev/null +then echo "Git Installed." +else echo "Git is not installed. Please install Git." | exit 1 + +if dotnet 2>&1 >/dev/null +then echo "Dotnet installed." +else echo "Dotnet is not installed. Please install dotnet." | exit 1 + +mkdir NadekoInstall_Temp +echo "Created NadekoBot-temp folder" +cd NadekoInstall_Temp +echo "Downloading NadekoBot, please wait." +git clone -b 1.0 --recursive -v https://github.com/Kwoth/NadekoBot.git +echo "NadekoBot downloaded." +cd NadekoInstall_Temp/NadekoBot/ +dotnet restore >nul 2>&1 +cd NadekoInstall_Temp/NadekoBot/src/NadekoBot/ +echo "Building NadekoBot" +dotnet build --configuration Release +echo "Setting up NadekoBot" +dotnet build --configuration Release +echo "Done. You can close the window." + exit 0