Fix regex

This commit is contained in:
aclist authored and GitHub committed 2022-06-05 05:39:20 +09:00
1 parent a34dbe09ce
commit 46f28abfa0
1 file changed
+2 -1
+2 -1
View File
@@ -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