mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fixing app without arguments
This commit is contained in:
parent
ee29d2e476
commit
d63caa7776
1 changed files with 5 additions and 2 deletions
|
@ -31,8 +31,11 @@ ynh_install_apps() {
|
||||||
if ! yunohost app list --output-as json --quiet | jq -e --arg id $one_app '.apps[] | select(.id == $id)' >/dev/null
|
if ! yunohost app list --output-as json --quiet | jq -e --arg id $one_app '.apps[] | select(.id == $id)' >/dev/null
|
||||||
then
|
then
|
||||||
# Retrieve the arguments of the app (part after ?)
|
# Retrieve the arguments of the app (part after ?)
|
||||||
local one_argument=$(cut -d "?" -f2- <<< "$one_app_and_its_args")
|
local one_argument=""
|
||||||
[ ! -z "$one_argument" ] && one_argument="--args $one_argument"
|
if [[ "$one_app_and_its_args" == *"?"* ]]; then
|
||||||
|
one_argument=$(cut -d "?" -f2- <<< "$one_app_and_its_args")
|
||||||
|
one_argument="--args $one_argument"
|
||||||
|
fi
|
||||||
|
|
||||||
# Install the app with its arguments
|
# Install the app with its arguments
|
||||||
yunohost app install $one_app $one_argument
|
yunohost app install $one_app $one_argument
|
||||||
|
|
Loading…
Add table
Reference in a new issue