mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
fix: variable name
This commit is contained in:
parent
ebe54d812c
commit
2d95b760d4
1 changed files with 5 additions and 5 deletions
10
dzgui.sh
10
dzgui.sh
|
@ -259,8 +259,8 @@ Type=Application
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Exec=$share_path/dzgui.sh
|
Exec=$share_path/dzgui.sh
|
||||||
Name=$app_name_upper
|
Name=$app_name_upper
|
||||||
Comment=$appname
|
Comment=$app_name
|
||||||
Icon=$share_path/$appname
|
Icon=$share_path/$app_name
|
||||||
Categories=Game
|
Categories=Game
|
||||||
END
|
END
|
||||||
}
|
}
|
||||||
|
@ -272,9 +272,9 @@ freedesktop_dirs(){
|
||||||
for i in dzgui grid.png hero.png logo.png; do
|
for i in dzgui grid.png hero.png logo.png; do
|
||||||
curl -s "$img_url/$i" > "$share_path/$i"
|
curl -s "$img_url/$i" > "$share_path/$i"
|
||||||
done
|
done
|
||||||
write_desktop_file > "$freedesktop_path/$appname.desktop"
|
write_desktop_file > "$freedesktop_path/$app_name.desktop"
|
||||||
[[ $is_steam_deck -eq 0 ]] && return
|
[[ $is_steam_deck -eq 0 ]] && return
|
||||||
write_desktop_file > "$HOME/Desktop/$appname.desktop"
|
write_desktop_file > "$HOME/Desktop/$app_name.desktop"
|
||||||
}
|
}
|
||||||
legacy_vars(){
|
legacy_vars(){
|
||||||
local suffix="fav"
|
local suffix="fav"
|
||||||
|
@ -313,7 +313,7 @@ check_version(){
|
||||||
version_url="$testing_url/dzgui.sh"
|
version_url="$testing_url/dzgui.sh"
|
||||||
fi
|
fi
|
||||||
local upstream=$(curl -Ls "$version_url" | awk -F= '/^version=/ {print $2}')
|
local upstream=$(curl -Ls "$version_url" | awk -F= '/^version=/ {print $2}')
|
||||||
[[ ! -f "$freedesktop_path/$appname.desktop" ]] && freedesktop_dirs
|
[[ ! -f "$freedesktop_path/$app_name.desktop" ]] && freedesktop_dirs
|
||||||
if [[ $version == $upstream ]]; then
|
if [[ $version == $upstream ]]; then
|
||||||
logger INFO "Local version is same as upstream"
|
logger INFO "Local version is same as upstream"
|
||||||
check_unmerged
|
check_unmerged
|
||||||
|
|
Loading…
Reference in a new issue