Signed-off-by: Bastian Krause <[email protected]>
---
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
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to
[email protected]