mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-01-31 06:35:41 +00:00
Update core/tabs/applications-setup/fastfetch-setup.sh
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
This commit is contained in:
parent
00cdaa1085
commit
5d2eaf97b4
|
@ -54,11 +54,9 @@ setupFastfetchShell() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Check if RC file exists
|
if [ ! -f "$rc_file" ]; then
|
||||||
if [ ! -f "$rc_file" ] || [ "$other_shell" != "True" ]; then
|
printf "%b\n" "${RED}Shell config file $rc_file not found${RC}"
|
||||||
printf "%b\n" "${RED}Shell config file $rc_file${RC} not found"
|
|
||||||
else
|
else
|
||||||
# Check if fastfetch is already in RC file
|
|
||||||
if grep -q "fastfetch" "$rc_file"; then
|
if grep -q "fastfetch" "$rc_file"; then
|
||||||
printf "%b\n" "${YELLOW}Fastfetch is already configured in $rc_file${RC}"
|
printf "%b\n" "${YELLOW}Fastfetch is already configured in $rc_file${RC}"
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user