fix: wrong script path

This commit is contained in:
Víctor Falcón 2026-01-16 18:28:27 +01:00
parent ffd96949e5
commit 3ab920ee60
1 changed files with 37 additions and 37 deletions

View File

@ -27,7 +27,7 @@ check_and_setup_repo() {
echo -e "${YELLOW}Changing to ${REPO_DIR} directory...${NC}"
cd "$REPO_DIR"
# Re-execute the script from the new directory with original arguments
exec "./setup.sh" "$@"
exec "./whisper-money.sh" "$@"
fi
# Not in repo and repo directory doesn't exist - prompt to clone
@ -66,7 +66,7 @@ check_and_setup_repo() {
echo -e "${BLUE}You can clone it manually and run this script from the repository directory:${NC}"
echo -e " ${GREEN}git clone ${REPO_URL}${NC}"
echo -e " ${GREEN}cd ${REPO_DIR}${NC}"
echo -e " ${GREEN}./setup.sh${NC}"
echo -e " ${GREEN}./whispermoney${NC}"
exit 0
fi
@ -79,15 +79,15 @@ check_and_setup_repo() {
cd "$REPO_DIR"
# Make sure the script is executable
if [ -f "setup.sh" ]; then
chmod +x setup.sh
if [ -f "public/setup.sh" ]; then
chmod +x public/setup.sh
fi
echo -e "${GREEN}✓ Ready to continue with installation${NC}"
echo ""
# Re-execute the script from the new directory
exec "./setup.sh" "$@"
exec "./whispermoney" "$@"
else
echo -e "${RED}✗ Failed to clone repository${NC}"
echo -e "${YELLOW}Please check your internet connection and try again.${NC}"
@ -171,7 +171,7 @@ check_project_version() {
echo -e "${BLUE}Your local project is ${behind_count} commit(s) behind the remote repository.${NC}"
echo ""
echo -e "${YELLOW}To update, run:${NC}"
echo -e " ${GREEN}./setup.sh upgrade${NC}"
echo -e " ${GREEN}./whispermoney upgrade${NC}"
echo ""
echo -e "${BLUE}Or manually:${NC}"
echo -e " ${GREEN}git pull${NC}"
@ -798,10 +798,10 @@ install() {
echo -e " • MailHog (email testing)"
echo ""
echo -e "${YELLOW}To stop all services:${NC}"
echo -e " ${YELLOW}./setup.sh stop${NC}"
echo -e " ${YELLOW}./whispermoney stop${NC}"
echo ""
echo -e "${YELLOW}To start services again:${NC}"
echo -e " ${YELLOW}./setup.sh start${NC}"
echo -e " ${YELLOW}./whispermoney start${NC}"
echo ""
}