mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
fix: set branch on update
This commit is contained in:
parent
85f4f7e7f2
commit
155b1850e3
3 changed files with 9 additions and 9 deletions
14
dzgui.sh
14
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-44
|
version=5.0.0.rc-45
|
||||||
|
|
||||||
#CONSTANTS
|
#CONSTANTS
|
||||||
aid=221100
|
aid=221100
|
||||||
|
@ -548,25 +548,25 @@ fetch_dzq(){
|
||||||
fetch_helpers_by_sum(){
|
fetch_helpers_by_sum(){
|
||||||
declare -A sums
|
declare -A sums
|
||||||
sums=(
|
sums=(
|
||||||
["ui.py"]="9411e901a8572568ab129a4fe472a0a3"
|
["ui.py"]="6c6e024633f37915d010bc745fecdf7e"
|
||||||
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
|
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
|
||||||
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
||||||
["funcs"]="722834d7fa7aa60a2cf7f5b7350c5675"
|
["funcs"]="609cfc212219f43af70cd86e7cf87c8f"
|
||||||
)
|
)
|
||||||
local author="aclist"
|
local author="aclist"
|
||||||
local repo="dztui"
|
local repo="dztui"
|
||||||
local branch="$branch"
|
local realbranch
|
||||||
#TODO: update to 'dzgui' for first time setup
|
|
||||||
[[ -z $branch ]] && branch="testing"
|
|
||||||
local file
|
local file
|
||||||
local sum
|
local sum
|
||||||
local full_path
|
local full_path
|
||||||
|
[[ -z $branch ]] && realbranch="dzgui"
|
||||||
|
[[ $branch == "testing" ]] && realbranch="$branch"
|
||||||
|
|
||||||
for i in "${!sums[@]}"; do
|
for i in "${!sums[@]}"; do
|
||||||
file="$i"
|
file="$i"
|
||||||
sum="${sums[$i]}"
|
sum="${sums[$i]}"
|
||||||
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/$realbranch/helpers/$file"
|
||||||
echo "$url" >> $HOME/log
|
echo "$url" >> $HOME/log
|
||||||
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"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=5.0.0.rc-44
|
version=5.0.0.rc-45
|
||||||
|
|
||||||
#CONSTANTS
|
#CONSTANTS
|
||||||
aid=221100
|
aid=221100
|
||||||
|
|
|
@ -16,7 +16,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.44
|
# 5.0.0-rc.45
|
||||||
app_name = "DZGUI"
|
app_name = "DZGUI"
|
||||||
|
|
||||||
cache = {}
|
cache = {}
|
||||||
|
|
Loading…
Reference in a new issue