From 73e582b4781ee3079f96189b4f0ec6fac9d63bdc Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 31 Mar 2021 17:23:37 -0700 Subject: [PATCH] GUACAMOLE-1298: Avoid POSIX character classes for compatibility with mawk. --- doc/licenses/generate-license-files.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/licenses/generate-license-files.sh b/doc/licenses/generate-license-files.sh index 6486f155a..07ea3d845 100755 --- a/doc/licenses/generate-license-files.sh +++ b/doc/licenses/generate-license-files.sh @@ -260,8 +260,8 @@ trim_file() { FILENAME="$1" # Find line number of first and last non-blank lines - FIRST_LINE="`awk '/[^[:space:]]/ {print NR; exit}' "$FILENAME"`" - LAST_LINE="`awk '/[^[:space:]]/ {last=NR} END {print last}' "$FILENAME"`" + FIRST_LINE="`awk '/[^\t ]/ {print NR; exit}' "$FILENAME"`" + LAST_LINE="`awk '/[^\t ]/ {last=NR} END {print last}' "$FILENAME"`" # Print the contents of the file between those lines, inclusive awk "NR==$FIRST_LINE,NR==$LAST_LINE" "$FILENAME"