mirror of
https://github.com/YunoHost-Apps/xwiki_ynh.git
synced 2024-09-03 20:36:11 +02:00
Avoid to try to update extension is already up to date
This commit is contained in:
parent
5c5e8d32b3
commit
d3bd6cb815
1 changed files with 7 additions and 0 deletions
|
@ -51,6 +51,13 @@ install_exension() {
|
|||
local job_id=$(ynh_string_random)
|
||||
local xq=$install_dir/xq_tool/xq
|
||||
local curl='curl --silent --show-error'
|
||||
local extension_name_path=$(echo ${extension_id//./%2E} | sed 's|:|%3A|g')
|
||||
local extension_version_path=${extension_version//./%2E}
|
||||
|
||||
if [ -e "$data_dir/extension/repository/$extension_name_path/$extension_version_path" ]; then
|
||||
# Return if extension is already installed
|
||||
return 0
|
||||
fi
|
||||
|
||||
local status_raw
|
||||
local state_request
|
||||
|
|
Loading…
Add table
Reference in a new issue