From ce5aecead596529bc1f84feed7ca56a61d76d0d6 Mon Sep 17 00:00:00 2001 From: darealshinji Date: Sat, 6 Jul 2019 20:21:16 +0200 Subject: [PATCH] remove all comments Otherwise the generated header contains entries like this: ``` c "libxcb-dri2.so.0", "#", "https://github.com/probonopd/linuxdeployqt/issues/331#issuecomment-442276277", "libxcb-dri3.so.0", "#", "https://github.com/AppImage/AppImages/issues/348", ``` --- src/core/generate-excludelist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/generate-excludelist.sh b/src/core/generate-excludelist.sh index 6c698b9..d92cb13 100644 --- a/src/core/generate-excludelist.sh +++ b/src/core/generate-excludelist.sh @@ -18,7 +18,7 @@ log_prefix="-- [$(basename $0)]" echo "$log_prefix downloading excludelist from GitHub" url="https://raw.githubusercontent.com/probonopd/AppImages/master/excludelist" -blacklisted=($(wget --quiet "$url" -O - | sort | uniq | grep -v "^#.*" | grep "[^-\s]")) +blacklisted=($(wget --quiet "$url" -O - | sed 's|#.*||g' | sort | uniq)) # sanity check if [ "$blacklisted" == "" ]; then