Fix compare_packages.sh: line 14: [: too many arguments (#5875)

This commit is contained in:
Ed Reel
2021-06-17 19:27:00 -05:00
committed by GitHub
parent 9254f3d2ac
commit acbca0fd55

View File

@@ -11,7 +11,7 @@ ls ../packages/*.rb | sort | cut -d'/' -f3 | cut -d'.' -f1 > /tmp/packages_all.t
rm -f /tmp/packages.txt
touch /tmp/packages.txt
for p in $(cat /tmp/packages_all.txt); do
if [ ! $(grep 'is_fake' ../packages/${p}.rb 2> /dev/null) ]; then
if [[ ! $(grep 'is_fake' ../packages/${p}.rb 2> /dev/null) ]]; then
echo $p >> /tmp/packages.txt
fi
done