Skip to content

Commit ea5a4b1

Browse files
authored
Merge pull request #445 from JaKooLit/development
updated copy.sh
2 parents 1320496 + 2c87bc3 commit ea5a4b1

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

copy.sh

+13-13
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ NOTE:
182182
echo "${NOTE} kb_layout $new_layout configured in settings." 2>&1 | tee -a "$LOG"
183183
break ;;
184184
*)
185-
echo "Please enter either 'y' or 'n'." ;;
185+
echo "${ERROR} Please enter either 'y' or 'n'." ;;
186186
esac
187187
done
188188

@@ -212,7 +212,7 @@ while true; do
212212
break
213213
;;
214214
*)
215-
echo "Invalid choice. Please enter 1 for ≤ 1080p or 2 for ≥ 1440p."
215+
echo "${ERROR} Invalid choice. Please enter 1 for ≤ 1080p or 2 for ≥ 1440p."
216216
;;
217217
esac
218218
done
@@ -292,15 +292,15 @@ while true; do
292292
sudo sed -i 's|^## HourFormat="hh:mm AP"|HourFormat="hh:mm AP"|' "$sddm_folder_2/theme.conf" 2>&1 | tee -a "$LOG" || true
293293
sudo sed -i 's|^HourFormat="HH:mm"|## HourFormat="HH:mm"|' "$sddm_folder_2/theme.conf" 2>&1 | tee -a "$LOG" || true
294294

295-
echo "12H format set to SDDM theme successfully." 2>&1 | tee -a "$LOG"
295+
echo "${OK} 12H format set to SDDM theme successfully." 2>&1 | tee -a "$LOG"
296296
fi
297297

298298
break
299299
elif [[ "$answer" == "n" ]]; then
300300
echo "You chose not to change to 12H format." 2>&1 | tee -a "$LOG"
301301
break
302302
else
303-
echo "Invalid choice. Please enter y for yes or n for no."
303+
echo "${ERROR} Invalid choice. Please enter y for yes or n for no."
304304
fi
305305
done
306306

@@ -379,19 +379,19 @@ for DIR2 in $DIRS; do
379379

380380
if [ -d "$DIRPATH" ]; then
381381
while true; do
382-
read -p "${CAT} Config directory $DIR2 already exists. Do you want to replace it? (Y/N): " CHOICE
382+
read -p "${CAT} ${ORANGE}$DIR2${RESET} config found in ~/.config/ Do you want to replace ${ORANGE}$DIR2${RESET} config? (Y/N): " CHOICE
383383
case "$CHOICE" in
384384
[Yy]* )
385385
BACKUP_DIR=$(get_backup_dirname)
386-
echo -e "${NOTE} - Config for $DIR2 found, attempting to back up."
386+
echo -e "${NOTE} - Config for ${YELLOW}$DIR2${RESET} found, attempting to back up."
387387

388388
mv "$DIRPATH" "$DIRPATH-backup-$BACKUP_DIR" 2>&1 | tee -a "$LOG"
389389
if [ $? -eq 0 ]; then
390390
echo -e "${NOTE} - Backed up $DIR2 to $DIRPATH-backup-$BACKUP_DIR." 2>&1 | tee -a "$LOG"
391391

392-
cp -r config/"$DIR2" ~/.config/"$DIR2" 2>&1 | tee -a "$LOG"
392+
cp -r config/"$DIR2" ~/.config/"$DIR2"
393393
if [ $? -eq 0 ]; then
394-
echo -e "${OK} - Replaced $DIR2 with new configuration."
394+
echo -e "${OK} - Replaced $DIR2 with new configuration." 2>&1 | tee -a "$LOG"
395395
else
396396
echo "${ERROR} - Failed to copy $DIR2." 2>&1 | tee -a "$LOG"
397397
exit 1
@@ -404,7 +404,7 @@ for DIR2 in $DIRS; do
404404
;;
405405
[Nn]* )
406406
# Skip the directory
407-
echo -e "${NOTE} - Skipping $DIR2." 2>&1 | tee -a "$LOG"
407+
echo -e "${NOTE} - Skipping ${ORANGE}$DIR2${RESET} " 2>&1 | tee -a "$LOG"
408408
break
409409
;;
410410
* )
@@ -416,9 +416,9 @@ for DIR2 in $DIRS; do
416416
# Copy new config if directory does not exist
417417
cp -r config/"$DIR2" ~/.config/"$DIR2" 2>&1 | tee -a "$LOG"
418418
if [ $? -eq 0 ]; then
419-
echo "${OK} - Copy completed for $DIR2." 2>&1 | tee -a "$LOG"
419+
echo "${OK} - Copy completed for ${YELLOW}$DIR2${RESET}" 2>&1 | tee -a "$LOG"
420420
else
421-
echo "${ERROR} - Failed to copy $DIR2." 2>&1 | tee -a "$LOG"
421+
echo "${ERROR} - Failed to copy ${YELLOW}$DIR2${RESET}" 2>&1 | tee -a "$LOG"
422422
exit 1
423423
fi
424424
fi
@@ -428,7 +428,7 @@ printf "\n%.0s" {1..1}
428428

429429
# copying Wallpapers
430430
mkdir -p ~/Pictures/wallpapers
431-
cp -r wallpapers ~/Pictures/ && { echo "${OK}Copy of wallpapers completed!"; } || { echo "${ERROR} Failed to copy wallpapers."; exit 1; } 2>&1 | tee -a "$LOG"
431+
cp -r wallpapers ~/Pictures/ && { echo "${OK} some wallpapers compied!"; } || { echo "${ERROR} Failed to copy some wallpapers."; exit 1; } 2>&1 | tee -a "$LOG"
432432

433433
# Set some files as executable
434434
chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG"
@@ -486,7 +486,7 @@ while true; do
486486
fi
487487
;;
488488
[Nn])
489-
echo "You chose not to download additional wallpapers." 2>&1 | tee -a "$LOG"
489+
echo "${NOTE} You chose not to download additional wallpapers." 2>&1 | tee -a "$LOG"
490490
break
491491
;;
492492
*)

0 commit comments

Comments
 (0)