Skip to content

Commit

Permalink
Update core/tabs/applications-setup/fastfetch-setup.sh
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Perkowski <[email protected]>
  • Loading branch information
mateuszkozako and adamperkowski authored Jan 22, 2025
1 parent 00cdaa1 commit 5d2eaf9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/tabs/applications-setup/fastfetch-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d2eaf9

Please sign in to comment.