Update core/tabs/applications-setup/fastfetch-setup.sh

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
This commit is contained in:
mateuszkozako 2025-01-22 09:49:57 +01:00 committed by GitHub
parent 00cdaa1085
commit 5d2eaf97b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,11 +54,9 @@ setupFastfetchShell() {
;;
esac
# Check if RC file exists
if [ ! -f "$rc_file" ] || [ "$other_shell" != "True" ]; then
printf "%b\n" "${RED}Shell config file $rc_file${RC} not found"
if [ ! -f "$rc_file" ]; then
printf "%b\n" "${RED}Shell config file $rc_file not found${RC}"
else
# Check if fastfetch is already in RC file
if grep -q "fastfetch" "$rc_file"; then
printf "%b\n" "${YELLOW}Fastfetch is already configured in $rc_file${RC}"
return 0