mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 06:32:53 +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=$?
|
rc=$?
|
||||||
if [[ $rc -eq 0 ]]; then
|
if [[ $rc -eq 0 ]]; then
|
||||||
echo "[DZGUI] Wrote $upstream to $source_dir/dzgui.sh"
|
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
|
zenity --info --title="DZGUI" --text "DZGUI $upstream successfully downloaded.\nExit and restart to use the new version." 2>/dev/null
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
@@ -385,7 +386,7 @@ download_new_version(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
check_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
|
if [[ $version == $upstream ]]; then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user