Skip to content

Commit

Permalink
[F] Fix shellcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Aug 10, 2023
1 parent 98feca0 commit b5e9edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -3943,8 +3943,8 @@ get_style() {
qt_theme="$(grep "^${kde}" "$kde_config_file")"
qt_theme="${qt_theme/*=}"

if [[ "$kde" == "widgetStyle" ]] && [[ $(grep "\[Theme\]" $HOME/.config/plasmarc) ]]; then
kde_theme="$(awk '/name=/ {gsub(/name=/,"",$0);print $0;exit}' $HOME/.config/plasmarc)"
if [[ "$kde" == "widgetStyle" ]] && grep -q "\[Theme\]" "$HOME/.config/plasmarc"; then
kde_theme="$(awk '/name=/ {gsub(/name=/,"",$0);print $0;exit}' "$HOME/.config/plasmarc")"
else
kde_theme="$(grep "^${kde}" "$kde_config_file")"
kde_theme="${kde_theme/*=}"
Expand Down

0 comments on commit b5e9edf

Please sign in to comment.