mirror of
https://github.com/aclist/dztui.git
synced 2026-10-26 04:32:39 +01:00
Fix regex
This commit is contained in:
1 parent
a34dbe09ce
commit
46f28abfa0
1 file changed
+2
-1
@@ -375,6 +375,7 @@ download_new_version(){
|
||||
rc=$?
|
||||
if [[ $rc -eq 0 ]]; then
|
||||
echo "[DZGUI] Wrote $upstream to $source_dir/dzgui.sh"
|
||||
chmod +x $source_dir/dzgui.sh
|
||||
zenity --info --title="DZGUI" --text "DZGUI $upstream successfully downloaded.\nExit and restart to use the new version." 2>/dev/null
|
||||
exit
|
||||
else
|
||||
@@ -385,7 +386,7 @@ download_new_version(){
|
||||
|
||||
}
|
||||
check_version(){
|
||||
upstream=$(curl -Ls "$version_url" | awk -F= '/version=/ {print $2}')
|
||||
upstream=$(curl -Ls "$version_url" | awk -F= '/^version=/ {print $2}')
|
||||
if [[ $version == $upstream ]]; then
|
||||
:
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user