diff --git a/build.sh b/build.sh index 7799b76..9dce0e9 100755 --- a/build.sh +++ b/build.sh @@ -18,7 +18,7 @@ # HACK to work around (r)dmd placing -lcurl before the object files - which is wrong if --as-needed is used # On newer Ubuntu versions this is the default, though if [ -f /etc/lsb-release ]; then - lsb_release -i | grep "Ubuntu" 2> /dev/null && LIBS="-L--no-as-needed $LIBS" + lsb_release -i | grep -q "Ubuntu" 2> /dev/null && LIBS="-L--no-as-needed $LIBS" fi echo Running $DC...