mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
Ensure jq is installed
This commit is contained in:
parent
2e547075dc
commit
c38f528748
1 changed files with 5 additions and 0 deletions
5
ynh-dev
5
ynh-dev
|
@ -195,6 +195,11 @@ function check_incus_setup()
|
||||||
|
|
||||||
function set_incus_remote()
|
function set_incus_remote()
|
||||||
{
|
{
|
||||||
|
# Check jq is installed somehow
|
||||||
|
if ! command -v jq &>/dev/null; then
|
||||||
|
critical "You need jq installed for ynh-dev"
|
||||||
|
fi
|
||||||
|
|
||||||
configured=$(incus remote list -f json | jq 'has("yunohost")')
|
configured=$(incus remote list -f json | jq 'has("yunohost")')
|
||||||
if [[ "$configured" != "true" ]]; then
|
if [[ "$configured" != "true" ]]; then
|
||||||
incus remote add yunohost https://devbaseimgs.yunohost.org --public
|
incus remote add yunohost https://devbaseimgs.yunohost.org --public
|
||||||
|
|
Loading…
Add table
Reference in a new issue