From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: In-Reply-To: <20200922141434.8544-3-bst@pengutronix.de> MIME-Version: 1.0 Message-Id: From: Michael Olbrich Date: Tue, 06 Oct 2020 10:18:39 +0200 Subject: Re: [ptxdist] [APPLIED] 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 Thanks, applied as 5d0ac6852ec815e14dd0c80ba6b484c3b33ecd5f. Michael [sent from post-receive hook] On Tue, 06 Oct 2020 10:18:39 +0200, Bastian Krause wrote: > Signed-off-by: Bastian Krause > Message-Id: <20200922141434.8544-3-bst@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/scripts/lib/ptxd_lib_template.sh b/scripts/lib/ptxd_lib_template.sh > index 5fdb805ebb51..59c2a073ed8d 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 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de