mirror of
https://github.com/aclist/dztui.git
synced 2024-12-30 14:12:04 +01:00
fix: conditional expression
This commit is contained in:
parent
2ca5bf31d1
commit
858bd066d7
3 changed files with 8 additions and 8 deletions
10
dzgui.sh
10
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
version=5.0.0.rc-24
|
version=5.0.0.rc-25
|
||||||
|
|
||||||
#CONSTANTS
|
#CONSTANTS
|
||||||
aid=221100
|
aid=221100
|
||||||
|
@ -449,8 +449,8 @@ steam_deps(){
|
||||||
migrate_files(){
|
migrate_files(){
|
||||||
if [[ ! -f $config_path/dztuirc.oldapi ]]; then
|
if [[ ! -f $config_path/dztuirc.oldapi ]]; then
|
||||||
cp $config_file $config_path/dztuirc.oldapi
|
cp $config_file $config_path/dztuirc.oldapi
|
||||||
|
logger INFO "Migrated old API file"
|
||||||
fi
|
fi
|
||||||
logger INFO "Migrated old API file"
|
|
||||||
[[ ! -f $hist_file ]] && return
|
[[ ! -f $hist_file ]] && return
|
||||||
rm $hist_file
|
rm $hist_file
|
||||||
logger INFO "Wiped old history file"
|
logger INFO "Wiped old history file"
|
||||||
|
@ -536,10 +536,10 @@ fetch_dzq(){
|
||||||
fetch_helpers_by_sum(){
|
fetch_helpers_by_sum(){
|
||||||
declare -A sums
|
declare -A sums
|
||||||
sums=(
|
sums=(
|
||||||
["ui.py"]="569a966fd97eddb8f4d0139364f161b2"
|
["ui.py"]="52005a27aa00eb2801068b08838eb58f"
|
||||||
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
|
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
|
||||||
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
||||||
["funcs"]="f290a5d7c16f6ac2a124b78ed473f9ac"
|
["funcs"]="2668e6d1df5cb68e35202471228bb1fc"
|
||||||
)
|
)
|
||||||
local author="aclist"
|
local author="aclist"
|
||||||
local repo="dztui"
|
local repo="dztui"
|
||||||
|
@ -554,7 +554,7 @@ fetch_helpers_by_sum(){
|
||||||
full_path="$helpers_path/$file"
|
full_path="$helpers_path/$file"
|
||||||
url="https://raw.githubusercontent.com/$author/$repo/$branch/helpers/$file"
|
url="https://raw.githubusercontent.com/$author/$repo/$branch/helpers/$file"
|
||||||
if [[ -f "$full_path" ]] && [[ $(get_hash "$full_path") == $sum ]]; then
|
if [[ -f "$full_path" ]] && [[ $(get_hash "$full_path") == $sum ]]; then
|
||||||
logger INFO "'$file' is current"
|
logger INFO "$file is current"
|
||||||
else
|
else
|
||||||
logger WARN "File '$full_path' checksum != '$sum'"
|
logger WARN "File '$full_path' checksum != '$sum'"
|
||||||
curl -Ls "$url" > "$full_path"
|
curl -Ls "$url" > "$full_path"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=5.0.0.rc-24
|
version=5.0.0.rc-25
|
||||||
|
|
||||||
#CONSTANTS
|
#CONSTANTS
|
||||||
aid=221100
|
aid=221100
|
||||||
|
@ -1190,7 +1190,7 @@ check_timestamps(){
|
||||||
merge_modlists(){
|
merge_modlists(){
|
||||||
local diff="$1"
|
local diff="$1"
|
||||||
readarray -t needs_update < <(check_timestamps)
|
readarray -t needs_update < <(check_timestamps)
|
||||||
if [[ ${#needs_update[@]} -eq 0]]; then
|
if [[ ${#needs_update[@]} -eq 0 ]]; then
|
||||||
echo "$diff"
|
echo "$diff"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -15,7 +15,7 @@ locale.setlocale(locale.LC_ALL, '')
|
||||||
gi.require_version("Gtk", "3.0")
|
gi.require_version("Gtk", "3.0")
|
||||||
from gi.repository import Gtk, GLib, Gdk, GObject, Pango
|
from gi.repository import Gtk, GLib, Gdk, GObject, Pango
|
||||||
|
|
||||||
# 5.0.0-rc.24
|
# 5.0.0-rc.25
|
||||||
app_name = "DZGUI"
|
app_name = "DZGUI"
|
||||||
|
|
||||||
cache = {}
|
cache = {}
|
||||||
|
|
Loading…
Reference in a new issue