From 38252a842317033e7c3c6789fb82dc236ca9f6f9 Mon Sep 17 00:00:00 2001 From: Clemens Lang Date: Wed, 7 Mar 2018 23:44:48 +0100 Subject: [PATCH] tests: Fix split at |, fixes URL test case --- google-font-download | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/google-font-download b/google-font-download index 2054fb1..9399cfb 100755 --- a/google-font-download +++ b/google-font-download @@ -129,9 +129,7 @@ misuse_exit() { # function that act like split in perl. Syntax: splitarr IFS $var array splitarr() { - if [[ "$2" =~ $1 ]]; then - IFS="$1" read -r -a "$3" <<< "$2" - fi + IFS="$1" read -r -a "$3" <<< "$2" } # Check for modern getopt(1) that quotes correctly; see #1 for rationale