2 Commits

Author SHA1 Message Date
730d5ec061 tell user where to find twister.conf 2020-01-21 23:38:50 -07:00
e4d14907c1 exit when daemon does not exist 2020-01-21 23:35:54 -07:00

View File

@@ -24,8 +24,7 @@ makeJobs="j5"
twister_deps_supported(){
echo -e "\nPlease supply one of the following aruments: \n\n"
echo -e "void\n"
echo -e "fedora\n\n"
echo -e "void\n\n"
echo -e "Example: ${0} deps void\n\n"
}
@@ -33,14 +32,9 @@ twister_deps_supported(){
twister_deps(){
local curDistro="${1}"
local voidPkgs="git boost boost-devel db db-devel libressl-devel base-devel"
local fedoraPkgs="git boost boost-devel libdb-cxx-devel openssl-devel"
if [[ "${curDistro}" == "void" ]];then
sudo xbps-install -S ${voidPkgs}
elif [[ "${curDistro}" = "fedora" ]];then
sudo dnf install ${fedoraPkgs}
sudo dnf group install "Development Tools"
else
echo -e "${LRED}Distro not supported ${NC}\n"
echo -e "${YCYAN}Dependencies: boost, boost-devel, libressl-devel, db, db-devel, base-devel${NC}"
@@ -104,6 +98,7 @@ twister_launch(){
if [[ ! -f ${coreCloneDir}/twisterd ]];then
echo -e "\n${LRED}Cannot launch twister because twisterd does not exist in ${coreCloneDir}${NC}\n\n"
exit 1
else
if [ ! -d ${HOME}/.twister ];then
@@ -134,7 +129,7 @@ twister_rpc(){
echo -e "\n${YELLOW}When you launch twister, you may be asked for a name and password:${NC}"
echo -e "${YELLOW}user: user${NC}"
echo -e "${YELLOW}password: pwd${NC}"
echo -e "If for some reason this isn't the case, check /$HOME/.twister"
echo -e "${YELLOW}See twister.conf in ${HOME}/.twister${NC}"
}
if [[ -z "${1}" ]];then