Fix newline characters.
This commit is contained in:
parent
e03ba708db
commit
87f7406548
@ -46,6 +46,7 @@ function run_installer()
|
|||||||
dim=`tput dim`
|
dim=`tput dim`
|
||||||
reverse=`tput rev`
|
reverse=`tput rev`
|
||||||
reset=`tput sgr0`
|
reset=`tput sgr0`
|
||||||
|
n=$'\n'
|
||||||
|
|
||||||
|
|
||||||
function head() {
|
function head() {
|
||||||
@ -143,7 +144,7 @@ function run_installer()
|
|||||||
get_osx_dependencies
|
get_osx_dependencies
|
||||||
else
|
else
|
||||||
OS_TYPE="win"
|
OS_TYPE="win"
|
||||||
abort_install "${red}==>${reset} ${b}OS not supported:${reset} Parity one-liner currently support OS X and Linux.\nFor instructions on installing parity on other platforms please visit ${u}${blue}http://ethcore.io/${reset}"
|
abort_install "${red}==>${reset} ${b}OS not supported:${reset} Parity one-liner currently support OS X and Linux.${n}For instructions on installing parity on other platforms please visit ${u}${blue}http://ethcore.io/${reset}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
@ -205,8 +206,8 @@ function run_installer()
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
errorMessages+="${red}==>${reset} ${b}Mac OS version too old:${reset} eth requires OS X version ${red}$OSX_REQUIERED_VERSION${reset} at least in order to run.\n"
|
errorMessages+="${red}==>${reset} ${b}Mac OS version too old:${reset} eth requires OS X version ${red}$OSX_REQUIERED_VERSION${reset} at least in order to run.${n}"
|
||||||
errorMessages+=" Please update the OS and reload the install process.\n"
|
errorMessages+=" Please update the OS and reload the install process.${n}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function find_eth()
|
function find_eth()
|
||||||
@ -257,8 +258,8 @@ function run_installer()
|
|||||||
uncheck "Ruby is missing 🔥"
|
uncheck "Ruby is missing 🔥"
|
||||||
isRuby=false
|
isRuby=false
|
||||||
canContinue=false
|
canContinue=false
|
||||||
errorMessages+="${red}==>${reset} ${b}Couldn't find Ruby:${reset} Brew requires Ruby which could not be found.\n"
|
errorMessages+="${red}==>${reset} ${b}Couldn't find Ruby:${reset} Brew requires Ruby which could not be found.${n}"
|
||||||
errorMessages+=" Please install Ruby using these instructions ${u}${blue}https://www.ruby-lang.org/en/documentation/installation/${reset}.\n"
|
errorMessages+=" Please install Ruby using these instructions ${u}${blue}https://www.ruby-lang.org/en/documentation/installation/${reset}.${n}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -275,10 +276,10 @@ function run_installer()
|
|||||||
uncheck "Homebrew is missing"
|
uncheck "Homebrew is missing"
|
||||||
isBrew=false
|
isBrew=false
|
||||||
|
|
||||||
INSTALL_FILES+="${blue}${dim}==> Homebrew:${reset}\n"
|
INSTALL_FILES+="${blue}${dim}==> Homebrew:${reset}${n}"
|
||||||
INSTALL_FILES+=" ${blue}${dim}➜${reset} $HOMEBREW_PREFIX/bin/brew\n"
|
INSTALL_FILES+=" ${blue}${dim}➜${reset} $HOMEBREW_PREFIX/bin/brew${n}"
|
||||||
INSTALL_FILES+=" ${blue}${dim}➜${reset} $HOMEBREW_PREFIX/Library\n"
|
INSTALL_FILES+=" ${blue}${dim}➜${reset} $HOMEBREW_PREFIX/Library${n}"
|
||||||
INSTALL_FILES+=" ${blue}${dim}➜${reset} $HOMEBREW_PREFIX/share/man/man1/brew.1\n"
|
INSTALL_FILES+=" ${blue}${dim}➜${reset} $HOMEBREW_PREFIX/share/man/man1/brew.1${n}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
depCount=$((depCount+1))
|
depCount=$((depCount+1))
|
||||||
@ -409,10 +410,11 @@ function run_installer()
|
|||||||
depFound=$((depFound+1))
|
depFound=$((depFound+1))
|
||||||
check "apt-get"
|
check "apt-get"
|
||||||
isRocksDB=true
|
isRocksDB=true
|
||||||
|
INSTALL_FILES+="${blue}${dim}==> librocksdb:${reset}$n"
|
||||||
else
|
else
|
||||||
uncheck "librocksdb is missing"
|
uncheck "librocksdb is missing"
|
||||||
isRocksDB=false
|
isRocksDB=false
|
||||||
INSTALL_FILES+="${blue}${dim}==> librocksdb:${reset}\n"
|
INSTALL_FILES+="${blue}${dim}==> librocksdb:${reset}$n"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -431,14 +433,14 @@ function run_installer()
|
|||||||
else
|
else
|
||||||
uncheck "rust is not nightly"
|
uncheck "rust is not nightly"
|
||||||
isMultirustNightly=false
|
isMultirustNightly=false
|
||||||
INSTALL_FILES+="${blue}${dim}==> multirust -> rust nightly:${reset}\n"
|
INSTALL_FILES+="${blue}${dim}==> multirust -> rust nightly:${reset}${n}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
uncheck "multirust is missing"
|
uncheck "multirust is missing"
|
||||||
uncheck "rust nightly is missing"
|
uncheck "rust nightly is missing"
|
||||||
isMultirust=false
|
isMultirust=false
|
||||||
isMultirustNightly=false
|
isMultirustNightly=false
|
||||||
INSTALL_FILES+="${blue}${dim}==> multirust:${reset}\n"
|
INSTALL_FILES+="${blue}${dim}==> multirust:${reset}${n}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -459,8 +461,8 @@ function run_installer()
|
|||||||
|
|
||||||
if [[ $isGCC == false || $isGit == false || $isMake == false || $isCurl == false ]]; then
|
if [[ $isGCC == false || $isGit == false || $isMake == false || $isCurl == false ]]; then
|
||||||
canContinue=false
|
canContinue=false
|
||||||
errorMessages+="${red}==>${reset} ${b}Couldn't find apt-get:${reset} We can only use apt-get in order to grab our dependencies.\n"
|
errorMessages+="${red}==>${reset} ${b}Couldn't find apt-get:${reset} We can only use apt-get in order to grab our dependencies.${n}"
|
||||||
errorMessages+=" Please switch to a distribution such as Debian or Ubuntu or manually install the missing packages.\n"
|
errorMessages+=" Please switch to a distribution such as Debian or Ubuntu or manually install the missing packages.${n}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -478,7 +480,7 @@ function run_installer()
|
|||||||
else
|
else
|
||||||
uncheck "g++ is missing"
|
uncheck "g++ is missing"
|
||||||
isGCC=false
|
isGCC=false
|
||||||
INSTALL_FILES+="${blue}${dim}==> g++:${reset}\n"
|
INSTALL_FILES+="${blue}${dim}==> g++:${reset}${n}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -497,15 +499,15 @@ function run_installer()
|
|||||||
if [[ `whoami` == "root" ]]; then
|
if [[ `whoami` == "root" ]]; then
|
||||||
if [[ $isApt == false && $isMultirust == false ]]; then
|
if [[ $isApt == false && $isMultirust == false ]]; then
|
||||||
canContinue=false
|
canContinue=false
|
||||||
errorMessages+="${red}==>${reset} ${b}Couldn't find sudo:${reset} Sudo is needed for the installation of multirust.\n"
|
errorMessages+="${red}==>${reset} ${b}Couldn't find sudo:${reset} Sudo is needed for the installation of multirust.${n}"
|
||||||
errorMessages+=" Please ensure you have sudo installed or alternatively install multirust manually.\n"
|
errorMessages+=" Please ensure you have sudo installed or alternatively install multirust manually.${n}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
isSudo=false
|
isSudo=false
|
||||||
else
|
else
|
||||||
canContinue=false
|
canContinue=false
|
||||||
errorMessages+="${red}==>${reset} ${b}Couldn't find sudo:${reset} Root access is needed for parts of this installation.\n"
|
errorMessages+="${red}==>${reset} ${b}Couldn't find sudo:${reset} Root access is needed for parts of this installation.${n}"
|
||||||
errorMessages+=" Please ensure you have sudo installed or alternatively run this script as root.\n"
|
errorMessages+=" Please ensure you have sudo installed or alternatively run this script as root.${n}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -523,7 +525,7 @@ function run_installer()
|
|||||||
else
|
else
|
||||||
uncheck "git is missing"
|
uncheck "git is missing"
|
||||||
isGit=false
|
isGit=false
|
||||||
INSTALL_FILES+="${blue}${dim}==> git:${reset}\n"
|
INSTALL_FILES+="${blue}${dim}==> git:${reset}${n}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -540,7 +542,7 @@ function run_installer()
|
|||||||
else
|
else
|
||||||
uncheck "make is missing"
|
uncheck "make is missing"
|
||||||
isMake=false
|
isMake=false
|
||||||
INSTALL_FILES+="${blue}${dim}==> make:${reset}\n"
|
INSTALL_FILES+="${blue}${dim}==> make:${reset}${n}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -557,7 +559,7 @@ function run_installer()
|
|||||||
else
|
else
|
||||||
uncheck "curl is missing"
|
uncheck "curl is missing"
|
||||||
isCurl=false
|
isCurl=false
|
||||||
INSTALL_FILES+="${blue}${dim}==> curl:${reset}\n"
|
INSTALL_FILES+="${blue}${dim}==> curl:${reset}${n}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user