From 42f9c8fc185a04a999360cb0005bf27abba8d851 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Mon, 11 Dec 2017 17:25:28 +0100 Subject: [PATCH] [fix] Who said I didn't check my code !? --- data/helpers.d/package | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/helpers.d/package b/data/helpers.d/package index a337bdd09..2e60d723e 100644 --- a/data/helpers.d/package +++ b/data/helpers.d/package @@ -124,7 +124,7 @@ ynh_install_app_dependencies () { manifest_path="../settings/manifest.json" # Into the restore script, the manifest is not at the same place fi version=$(grep '\"version\": ' "$manifest_path" | cut -d '"' -f 4) # Retrieve the version number in the manifest file. - if [ " ${#version}" -eq 0 ]; then + if [ ${#version} -eq 0 ]; then version="1.0" fi dep_app=${app//_/-} # Replace all '_' by '-'