From 59b2b8bb3f6633959ae2aec51241f248d709a845 Mon Sep 17 00:00:00 2001 From: Francesco Gualazzi Date: Wed, 11 Apr 2018 09:10:26 +0200 Subject: [PATCH] Adding a more specific message in the error Hi, as we spent roughly 30 minutes debugging the script to find the mathcing regex, it would be good if a more user-friendly error message should be included. We really didn/t expect the name to be such a strong constraint. thank you --- make-jpkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make-jpkg b/make-jpkg index 3db992c..4bb4572 100755 --- a/make-jpkg +++ b/make-jpkg @@ -262,7 +262,7 @@ echo if [[ -z "$j2se_found" ]]; then echo "No matching packaging method was found for $archive_name." - echo "Please make sure you are using a tar.gz or a self-extracting archive" + echo "Please make sure you are using a self-extracting archive or a tar.gz with a name matching the regex jdk-([0-9]+)(u([0-9]+))?-linux-(i586|x64|amd64|arm-vfp-hflt)\.(bin|tar\.gz)" fi