Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
PortWINE
Commits
32ac25e9
Commit
32ac25e9
authored
Oct 01, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated pw_port_update function
parent
3f2e6f87
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
16 deletions
+11
-16
functions_helper
data_from_portwine/scripts/functions_helper
+11
-16
No files found.
data_from_portwine/scripts/functions_helper
View file @
32ac25e9
...
...
@@ -1881,6 +1881,7 @@ pw_port_update () {
print_info
"Scripts version in git =
${
scripts_current_ver
}
"
print_info
"Scripts version local =
${
scripts_install_ver
}
\n
"
if
[[
-n
"
${
scripts_current_ver
}
"
]]
&&
[[
"
${
scripts_current_ver
}
"
-gt
"
${
scripts_install_ver
}
"
]]
;
then
echo
"2"
>
"
${
PORT_WINE_TMP_PATH
}
/scripts_update_notifier"
if
[[
-f
"
${
PW_GUI_THEMES_PATH
}
/gui/yad_gui_pp"
]]
then
export
pw_yad
=
"
${
PW_GUI_THEMES_PATH
}
/gui/yad_gui_pp"
elif
command
-v
yad &>/dev/null
...
...
@@ -1889,7 +1890,7 @@ pw_port_update () {
fi
if
[[
"
${
pw_yad
}
"
==
"not_found"
]]
\
||
[[
"
$PW_CHANGE_BRANCH
"
==
"1"
]]
;
then
xcsd
=
"
${
translations
[UPDATING NOW]
}
"
YAD_STATUS
=
20
unset
PW_CHANGE_BRANCH
else
curl
-s
--list-only
"
${
URL_FOR_CHANGELOG
}
/
${
PW_CHANGELOG_FILE
}
"
>
"
${
PORT_WINE_TMP_PATH
}
/curent_var_ver"
...
...
@@ -1903,18 +1904,16 @@ pw_port_update () {
YAD_STATUS
=
"
$?
"
# --button="${translations[EXIT]}"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":252 \
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/curent_var_ver"
case
${
YAD_STATUS
}
in
1|252
)
echo
"2"
>
"
${
PORT_WINE_TMP_PATH
}
/scripts_update_notifier"
&&
exit
0
;;
16
)
xcsd
=
"
${
translations
[DO NOT REMIND ME]
}
"
;;
18
)
xcsd
=
"
${
translations
[REMIND ME LATER]
}
"
;;
20
)
xcsd
=
"
${
translations
[UPDATING NOW]
}
"
;;
esac
fi
case
$xcsd
in
"
${
translations
[UPDATING NOW]
}
"
)
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/curent_var_ver"
case
$YAD_STATUS
in
1|252
)
exit
0
;;
16
)
echo
"0"
>
"
${
PORT_WINE_TMP_PATH
}
/scripts_update_notifier"
;;
18
)
:
;;
20
)
echo
"######################################################"
print_info
"Update scripts..."
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/PortWINE-
${
BRANCH
}
.tar.gz"
...
...
@@ -1937,10 +1936,6 @@ pw_port_update () {
else
yad_error_download
&&
pw_port_update
||
exit
1
fi
;;
"
${
translations
[REMIND ME LATER]
}
"
)
echo
"2"
>
"
${
PORT_WINE_TMP_PATH
}
/scripts_update_notifier"
;;
"
${
translations
[DO NOT REMIND ME]
}
"
)
echo
"0"
>
"
${
PORT_WINE_TMP_PATH
}
/scripts_update_notifier"
;;
esac
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment