From df244810fb4c9b65181a1ff562df7ddce6e65804 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Sun, 10 Mar 2019 08:20:59 +0100 Subject: [PATCH] fix linter suggestion --- manifest.json | 4 ++-- scripts/backup | 8 +------- scripts/restore | 8 +------- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/manifest.json b/manifest.json index 4c2ed63..57271eb 100644 --- a/manifest.json +++ b/manifest.json @@ -56,7 +56,7 @@ }, { "name": "github_account", - "type": "text", + "type": "string", "ask": { "en": "Github's username" }, @@ -64,7 +64,7 @@ }, { "name": "github_token", - "type": "text", + "type": "string", "ask": { "en": "Github's token (oauth)" }, diff --git a/scripts/backup b/scripts/backup index a2eaffe..5b1a5aa 100755 --- a/scripts/backup +++ b/scripts/backup @@ -6,13 +6,7 @@ # IMPORT GENERIC HELPERS #================================================= -if [ ! -e _common.sh ]; then - # Get the _common.sh file if it's not in the current directory - cp ../settings/scripts/_common.sh ./_common.sh - chmod a+rx _common.sh -fi - -source _common.sh +source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers ynh_abort_if_errors diff --git a/scripts/restore b/scripts/restore index b8b5788..d98d7e0 100755 --- a/scripts/restore +++ b/scripts/restore @@ -6,13 +6,7 @@ # IMPORT GENERIC HELPERS #================================================= -if [ ! -e _common.sh ]; then - # Get the _common.sh file if it's not in the current directory - cp ../settings/scripts/_common.sh ./_common.sh - chmod a+rx _common.sh -fi - -source _common.sh +source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers ynh_abort_if_errors