[F] Fix shellcheck for 2313
https://github.com/dylanaraps/neofetch/pull/2313
This commit is contained in:
parent
a6a17d102c
commit
3a1ac3e25a
1 changed files with 6 additions and 7 deletions
13
neofetch
13
neofetch
|
@ -1103,15 +1103,14 @@ get_distro() {
|
||||||
|
|
||||||
elif [[ -f /etc/astra_version ]]; then
|
elif [[ -f /etc/astra_version ]]; then
|
||||||
distro="Astra Linux"
|
distro="Astra Linux"
|
||||||
distro_version="$(cat /etc/astra_version \
|
distro_version="$(sed -nr 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p' < /etc/astra_version)"
|
||||||
| sed -nr 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p')"
|
|
||||||
if [[ $distro_version == "2.12"* ]]; then
|
if [[ $distro_version == "2.12"* ]]; then
|
||||||
distro_codename="ALCE"
|
distro_codename="ALCE"
|
||||||
else
|
else
|
||||||
distro_codename="ALSE"
|
distro_codename="ALSE"
|
||||||
fi
|
fi
|
||||||
case $distro_shorthand in
|
case $distro_shorthand in
|
||||||
on|tiny) distro=${distro} ;;
|
on|tiny) ;;
|
||||||
*) distro="${distro} ${distro_version} ${distro_codename}"
|
*) distro="${distro} ${distro_version} ${distro_codename}"
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -3945,11 +3944,11 @@ get_style() {
|
||||||
"Fly")
|
"Fly")
|
||||||
fly_config_file
|
fly_config_file
|
||||||
if [[ $fly == "ColorScheme" ]]; then
|
if [[ $fly == "ColorScheme" ]]; then
|
||||||
fly_theme=$(
|
fly_theme="$(
|
||||||
basename $(
|
basename "$(
|
||||||
awk -F '=' '/^'"${fly}"'/{print $2}' "${HOME}/.fly/paletterc"
|
awk -F '=' '/^'"${fly}"'/{print $2}' "${HOME}/.fly/paletterc"
|
||||||
)
|
)"
|
||||||
)
|
)"
|
||||||
if [[ $wm_theme == "Default" && $fly_theme != *"FlyDefault"* ]]; then
|
if [[ $wm_theme == "Default" && $fly_theme != *"FlyDefault"* ]]; then
|
||||||
fly_theme=$(awk -F '=' '/^'"${fly}"'/{print $2}'\
|
fly_theme=$(awk -F '=' '/^'"${fly}"'/{print $2}'\
|
||||||
"${HOME}/.config/fly-admin-themerc")
|
"${HOME}/.config/fly-admin-themerc")
|
||||||
|
|
Loading…
Reference in a new issue