From d50e57a24347b2d9ac0331cd2f6a0c0b19e26089 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 23 May 2020 16:19:22 +0200 Subject: Simplifying regex for script download configs/releng/airootfs/root/.automated_script.sh: Using only one regex to match http://, https:// or ftp:// endpoints. --- configs/releng/airootfs/root/.automated_script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configs/releng/airootfs/root/.automated_script.sh') diff --git a/configs/releng/airootfs/root/.automated_script.sh b/configs/releng/airootfs/root/.automated_script.sh index 81a98a1..aaf5583 100755 --- a/configs/releng/airootfs/root/.automated_script.sh +++ b/configs/releng/airootfs/root/.automated_script.sh @@ -15,7 +15,7 @@ automated_script () local script rt script="$(script_cmdline)" if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then - if [[ "${script}" =~ ^http:// || "${script}" =~ ^ftp:// ]]; then + if [[ "${script}" =~ ^((http|https|ftp)://) ]]; then wget "${script}" --retry-connrefused -q -O /tmp/startup_script >/dev/null rt=$? else -- cgit v1.2.3-70-g09d2