tools: only unset filter-lines if it is not set

This commit is contained in:
apio 2022-10-23 20:07:26 +02:00
parent 2d807e3ca5
commit 3db342e897

View File

@ -10,7 +10,9 @@ export AR=x86_64-luna-ar
export ASM=nasm
export STRIP=x86_64-luna-strip
unset -f filter-lines
if ! command -v filter-lines >/dev/null
then unset filter-lines
fi
filter-lines()
{
sed $'s|^|\x1b[32m('"$1/$2"$')\x1b[39m |'