aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Williams <129223418+dwilliam62@users.noreply.github.com>2024-12-12 09:33:54 -0500
committerGitHub <noreply@github.com>2024-12-12 09:33:54 -0500
commit18032a8db235e0d907de735852b8582cfab43488 (patch)
tree2b6211be5b1104f5a3f06648e6a5a4daafcb8736
parent9225c14ca169e473e1fd35be0f7bb8f705a33920 (diff)
parentb60f3322dc5fa0b7791ca616ee0c35270620db39 (diff)
Merge pull request #494 from brockar/fix-questions
fix: update prompts to indicate default responses in uppercase
-rwxr-xr-xcopy.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/copy.sh b/copy.sh
index bd4a7ca6..102ba119 100755
--- a/copy.sh
+++ b/copy.sh
@@ -208,7 +208,7 @@ EDITOR_SET=0
# Check for neovim if installed
if command -v nvim &> /dev/null; then
printf "${INFO} ${ORANGE}neovim${RESET} is detected as installed\n"
- read -p "${CAT} Do you want to make ${ORANGE}neovim${RESET} the default editor? (y/n): " EDITOR_CHOICE
+ read -p "${CAT} Do you want to make ${ORANGE}neovim${RESET} the default editor? (y/N): " EDITOR_CHOICE
if [[ "$EDITOR_CHOICE" == "y" ]]; then
update_editor "nvim"
EDITOR_SET=1
@@ -220,7 +220,7 @@ printf "\n"
# Check for vim if installed, but only if neovim wasn't chosen
if [[ "$EDITOR_SET" -eq 0 ]] && command -v vim &> /dev/null; then
printf "${INFO} ${ORANGE}vim${RESET} is detected as installed\n"
- read -p "${CAT} Do you want to make ${ORANGE}vim${RESET} the default editor? (y/n): " EDITOR_CHOICE
+ read -p "${CAT} Do you want to make ${ORANGE}vim${RESET} the default editor? (y/N): " EDITOR_CHOICE
if [[ "$EDITOR_CHOICE" == "y" ]]; then
update_editor "vim"
EDITOR_SET=1
@@ -347,7 +347,7 @@ printf "\n"
printf "${ORANGE} By default, Rainbow Borders animation is enabled.\n"
printf "${WARN} - However, this uses a bit more CPU and Memory resources.\n"
-read -p "${CAT} Do you want to disable Rainbow Borders animation? (Y/N): " border_choice
+read -p "${CAT} Do you want to disable Rainbow Borders animation? (y/N): " border_choice
if [[ "$border_choice" =~ ^[Yy]$ ]]; then
mv config/hypr/UserScripts/RainbowBorders.sh config/hypr/UserScripts/RainbowBorders.bak.sh
@@ -391,7 +391,7 @@ for DIR2 in $DIRS; do
if [ -d "$DIRPATH" ]; then
while true; do
- read -p "${CAT} ${ORANGE}$DIR2${RESET} config found in ~/.config/ Do you want to replace ${ORANGE}$DIR2${RESET} config? (Y/N): " DIR1_CHOICE
+ read -p "${CAT} ${ORANGE}$DIR2${RESET} config found in ~/.config/ Do you want to replace ${ORANGE}$DIR2${RESET} config? (y/n): " DIR1_CHOICE
case "$DIR1_CHOICE" in
[Yy]* )
BACKUP_DIR=$(get_backup_dirname)
@@ -503,6 +503,7 @@ FILES_TO_RESTORE=(
DIRPATH=~/.config/"$DIRH"
BACKUP_DIR=$(get_backup_dirname)
+
# Check if the UserConfigs directory exists in ~/.config/hypr
if [ -d "$DIRPATH/UserConfigs" ]; then
# Loop through files to check and offer restoration
@@ -511,7 +512,7 @@ if [ -d "$DIRPATH/UserConfigs" ]; then
if [ -f "$BACKUP_FILE" ]; then
printf "\n${INFO} Found ${YELLOW}$FILE_NAME${RESET} in hypr backup...\n"
- read -p "${CAT} Do you want to restore ${ORANGE}$FILE_NAME${RESET} from backup? (y/n): " file_restore
+ read -p "${CAT} Do you want to restore ${ORANGE}$FILE_NAME${RESET} from backup? (y/N): " file_restore
if [[ "$file_restore" == [Yy]* ]]; then
cp "$BACKUP_FILE" "$DIRPATH/UserConfigs/$FILE_NAME" && echo "${OK} - $FILE_NAME restored!" 2>&1 | tee -a "$LOG"
else
@@ -624,7 +625,7 @@ cleanup_backups() {
echo " - ${BACKUP##*/}"
done
- read -p "${CAT} Do you want to delete the older backups of ${ORANGE}${DIR##*/}${RESET} and keep the latest backup only? (y/n): " back_choice
+ read -p "${CAT} Do you want to delete the older backups of ${ORANGE}${DIR##*/}${RESET} and keep the latest backup only? (y/N): " back_choice
if [[ "$back_choice" == [Yy]* ]]; then
# Sort backups by modification time
latest_backup="${BACKUP_DIRS[0]}"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage