mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
better yunohost app list
This commit is contained in:
parent
5736aadd10
commit
700f671527
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ ynh_install_apps() {
|
|||
local oneargument=$(echo "$oneapp_and_its_args" | awk -F'?' '{print $2}')
|
||||
[ ! -z "$oneargument" ] && oneargument="--args \"$oneargument\""
|
||||
|
||||
if ! yunohost app list | grep -q "$oneapp"
|
||||
if ! yunohost app list --output-as json --quiet | jq -e --arg id $oneapp '.apps[] | select(.id == $id)' >/dev/null
|
||||
then
|
||||
yunohost tools update
|
||||
yunohost app install $oneapp $oneargument
|
||||
|
|
Loading…
Add table
Reference in a new issue