Skip to content

Commit

Permalink
tests: Fix split at |, fixes URL test case
Browse files Browse the repository at this point in the history
  • Loading branch information
neverpanic committed Mar 7, 2018
1 parent 1e8e1e5 commit 38252a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions google-font-download
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38252a8

Please sign in to comment.