#!/bin/bash
-set -o errexit
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
+source ../functions/main
# Testing toolchain
cd /tmp
echo 'main(){}' > dummy.c
gcc dummy.c -Wl,--verbose &> dummy.log
-if ! readelf -l a.out | grep 'Requesting program interpreter: /lib/ld-linux.*.so.2' 1> /dev/null 2>&1 ; then
+if ! readelf -l a.out | \
+ grep -q 'Requesting program interpreter: /lib/ld-linux.*.so.2'; then
echo "String 'Requesting program interpreter: /lib/ld-linux.*.so.2' not found"
exit 1
fi