Skip to content

Commit 79be0d0

Browse files
committed
chore: updating colours for messages in echo for linux install
1 parent 2d28d48 commit 79be0d0

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

docs/linux/installer.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ create_invocation_script() {
139139
mkdir -p "$link_dir" # Ensure the directory exists
140140
cp "$binary_path/$script_name" "$link_dir/$script_name"
141141

142-
echo -e "${YELLOW}Invocation script created at: $link_dir/$script_name${RESET}"
142+
echo -e "Invocation script created at: $link_dir/$script_name"
143143
}
144144
# Install Dependencies Function
145145
#
@@ -338,7 +338,7 @@ copyFilesToDestination(){
338338
echo -e "${YELLOW}Installation directory set up at: $INSTALL_DIR${RESET}"
339339

340340
echo "Moving the necessary files to the installation directory..."
341-
echo -e "${YELLOW}Phoenix Code files moved to: $INSTALL_DIR${RESET}"
341+
echo -e "Phoenix Code files moved to: $INSTALL_DIR"
342342
mv "$TMP_DIR"/phoenix-code/* "$INSTALL_DIR/" || {
343343
echo -e "${RED}Failed to move the files to the installation directory. Please check the permissions and try again.${RESET}"
344344
exit 1
@@ -351,7 +351,7 @@ copyFilesToDestination(){
351351
echo -e "${RED}Failed to set executable permissions. Please check the file path and permissions.${RESET}"
352352
exit 1
353353
}
354-
echo -e "${YELLOW}Executable permissions set for: $INSTALL_DIR/$BINARY_NAME${RESET}"
354+
echo -e "Executable permissions set for: $INSTALL_DIR/$BINARY_NAME"
355355

356356
mkdir -p "$LINK_DIR" # Ensure the directory exists
357357
# Call the function to create and copy the invocation script
@@ -379,7 +379,7 @@ EOF
379379
echo "Updating desktop database..."
380380
if command -v update-desktop-database &> /dev/null; then
381381
update-desktop-database "$DESKTOP_DIR"
382-
echo -e "${YELLOW}Desktop database updated in: $DESKTOP_DIR${RESET}"
382+
echo -e "Desktop database updated in: $DESKTOP_DIR"
383383
fi
384384

385385
# Update the KDE desktop database if KDE is in use
@@ -481,7 +481,7 @@ downloadAndInstall(){
481481
echo -e "${RED}Failed to download the binary. Please check your internet connection and try again.${RESET}"
482482
exit 1
483483
}
484-
echo -e "${YELLOW}Downloading the icon...${RESET}"
484+
echo -e "Downloading the icon..."
485485
wget -c -N --tries=10 --timeout=30 --waitretry=5 --retry-connrefused --show-progress -qO "$TMP_DIR/icon.png" "$ICON_URL" || {
486486
echo -e "${RED}Failed to download Icon${RESET}";
487487
exit 1;
@@ -538,18 +538,17 @@ install() {
538538
if [ -f "$LINK_DIR/$SCRIPT_NAME" ] || [ -d "$INSTALL_DIR" ]; then
539539
echo -e "${YELLOW}Phoenix Code appears to be already installed.${RESET}"
540540

541-
# Update the prompt to inform the user about the repair behavior with color
542-
echo -e "${YELLOW}The repair option will download and install the latest version available, replacing the current version.${RESET}"
543-
read -r -p "Would you like to proceed with the repair? (y/N): " response
541+
# Simplified prompt for reinstall without detailed explanation
542+
read -r -p "Would you like to reinstall it? (y/N): " response
544543
case "$response" in
545544
[Yy]* )
546-
echo -e "${GREEN}Proceeding with the repair by installing the latest version...${RESET}"
545+
echo -e "${GREEN}Reinstalling Phoenix Code...${RESET}"
547546
uninstall
548547
downloadAndInstall
549548
copyFilesToDestination
550549
;;
551550
* )
552-
echo -e "${RED}Repair aborted by the user.${RESET}"
551+
echo -e "${RED}Reinstall aborted by the user.${RESET}"
553552
exit 0
554553
;;
555554
esac
@@ -558,6 +557,7 @@ install() {
558557
copyFilesToDestination
559558
fi
560559
}
560+
561561
# Temporary code to clean up earlier beta installations
562562
function uninstallBetaAppImage() {
563563
rm -f "$LINK_DIR"/phoenix_icon.png

0 commit comments

Comments
 (0)