mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
fix: remove duplicates
This commit is contained in:
parent
e2781c07cf
commit
9b84a168b8
3 changed files with 12 additions and 8 deletions
6
dzgui.sh
6
dzgui.sh
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
set -o pipefail
|
||||
|
||||
version=5.0.0.rc-32
|
||||
version=5.0.0.rc-33
|
||||
|
||||
#CONSTANTS
|
||||
aid=221100
|
||||
|
@ -536,10 +536,10 @@ fetch_dzq(){
|
|||
fetch_helpers_by_sum(){
|
||||
declare -A sums
|
||||
sums=(
|
||||
["ui.py"]="34dc74d1330932e36087d2b52e0e42eb"
|
||||
["ui.py"]="24c16220d76b5fb8c6964648d509d684"
|
||||
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
|
||||
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
||||
["funcs"]="ae54854dfb45804c92a81f4b95bf3c54"
|
||||
["funcs"]="91144c992c4786c855da659f384caebd"
|
||||
)
|
||||
local author="aclist"
|
||||
local repo="dztui"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
set -o pipefail
|
||||
version=5.0.0.rc-32
|
||||
version=5.0.0.rc-33
|
||||
|
||||
#CONSTANTS
|
||||
aid=221100
|
||||
|
@ -1187,6 +1187,10 @@ check_timestamps(){
|
|||
}
|
||||
merge_modlists(){
|
||||
local diff="$1"
|
||||
_sort(){
|
||||
printf "%s\n" "$diff"
|
||||
printf "%s\n" "${needs_update[@]}"
|
||||
}
|
||||
readarray -t needs_update < <(check_timestamps)
|
||||
if [[ ${#needs_update[@]} -eq 0 ]]; then
|
||||
echo "$diff"
|
||||
|
@ -1195,8 +1199,8 @@ merge_modlists(){
|
|||
if [[ -z "$diff" ]] && [[ ${#needs_update[@]} -gt 0 ]]; then
|
||||
printf "%s\n" "${needs_update[@]}"
|
||||
else
|
||||
printf "%s\n" "$diff"
|
||||
printf "%s\n" "${needs_update[@]}"
|
||||
# remove duplicates
|
||||
_sort | sort -u
|
||||
fi
|
||||
}
|
||||
concat_mods(){
|
||||
|
@ -1306,7 +1310,7 @@ manual_mod_install(){
|
|||
if [[ -z $diff ]]; then
|
||||
launch "$ip" "$gameport" "$sanitized_mods"
|
||||
else
|
||||
printf "Some mods may have failed to download. Try connecting again to resync."
|
||||
printf "User aborted download process, or some mods may have failed to download. Try connecting again to resync."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ locale.setlocale(locale.LC_ALL, '')
|
|||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, GLib, Gdk, GObject, Pango
|
||||
|
||||
# 5.0.0-rc.32
|
||||
# 5.0.0-rc.33
|
||||
app_name = "DZGUI"
|
||||
|
||||
cache = {}
|
||||
|
|
Loading…
Reference in a new issue