From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Bastian Krause Date: Tue, 22 Sep 2020 16:14:18 +0200 Message-Id: <20200922141434.8544-3-bst@pengutronix.de> In-Reply-To: <20200922141434.8544-1-bst@pengutronix.de> References: <20200922141434.8544-1-bst@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH v3 03/19] ptxd_lib_template: allow default url/suffix in ptxd_template_read_url List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Bastian Krause Signed-off-by: Bastian Krause --- No previous version. --- scripts/lib/ptxd_lib_template.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/lib/ptxd_lib_template.sh b/scripts/lib/ptxd_lib_template.sh index 5fdb805eb..59c2a073e 100644 --- a/scripts/lib/ptxd_lib_template.sh +++ b/scripts/lib/ptxd_lib_template.sh @@ -85,11 +85,16 @@ ptxd_template_read_version() { fi } export -f ptxd_template_read_version - +# +# Read URL of basedir and suffix from user input +# +# $1 default URL of basedir (optional) +# $2 default suffix (optional) +# ptxd_template_read_url() { if [ -z "${ptxd_template_have_existing}" ]; then - ptxd_template_read "enter URL of basedir" URL - ptxd_template_read "enter suffix" SUFFIX + ptxd_template_read "enter URL of basedir" URL "${1}" + ptxd_template_read "enter suffix" SUFFIX "${2}" fi } export -f ptxd_template_read_url -- 2.28.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de