[F] Fix shellcheck warnings
This commit is contained in:
parent
98feca03f9
commit
b5e9edfae7
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -3943,8 +3943,8 @@ get_style() {
|
||||||
qt_theme="$(grep "^${kde}" "$kde_config_file")"
|
qt_theme="$(grep "^${kde}" "$kde_config_file")"
|
||||||
qt_theme="${qt_theme/*=}"
|
qt_theme="${qt_theme/*=}"
|
||||||
|
|
||||||
if [[ "$kde" == "widgetStyle" ]] && [[ $(grep "\[Theme\]" $HOME/.config/plasmarc) ]]; then
|
if [[ "$kde" == "widgetStyle" ]] && grep -q "\[Theme\]" "$HOME/.config/plasmarc"; then
|
||||||
kde_theme="$(awk '/name=/ {gsub(/name=/,"",$0);print $0;exit}' $HOME/.config/plasmarc)"
|
kde_theme="$(awk '/name=/ {gsub(/name=/,"",$0);print $0;exit}' "$HOME/.config/plasmarc")"
|
||||||
else
|
else
|
||||||
kde_theme="$(grep "^${kde}" "$kde_config_file")"
|
kde_theme="$(grep "^${kde}" "$kde_config_file")"
|
||||||
kde_theme="${kde_theme/*=}"
|
kde_theme="${kde_theme/*=}"
|
||||||
|
|
Loading…
Reference in a new issue