tools: only unset filter-lines if it is not set
This commit is contained in:
parent
2d807e3ca5
commit
3db342e897
@ -10,7 +10,9 @@ export AR=x86_64-luna-ar
|
|||||||
export ASM=nasm
|
export ASM=nasm
|
||||||
export STRIP=x86_64-luna-strip
|
export STRIP=x86_64-luna-strip
|
||||||
|
|
||||||
unset -f filter-lines
|
if ! command -v filter-lines >/dev/null
|
||||||
|
then unset filter-lines
|
||||||
|
fi
|
||||||
filter-lines()
|
filter-lines()
|
||||||
{
|
{
|
||||||
sed $'s|^|\x1b[32m('"$1/$2"$')\x1b[39m |'
|
sed $'s|^|\x1b[32m('"$1/$2"$')\x1b[39m |'
|
||||||
|
Loading…
Reference in New Issue
Block a user