From b8583c8d9c3fa62b664593e5a75429d9bae4615b Mon Sep 17 00:00:00 2001 From: casey langen Date: Sun, 3 Dec 2023 12:36:32 -0800 Subject: [PATCH] Better terminfo detection --- script/stage-vendor-libraries.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/stage-vendor-libraries.sh b/script/stage-vendor-libraries.sh index 6a1e60979..b797bbf43 100755 --- a/script/stage-vendor-libraries.sh +++ b/script/stage-vendor-libraries.sh @@ -70,6 +70,11 @@ elif [[ "$PLATFORM" == 'Linux' ]]; then cp $SYSTEM_ROOT/usr/lib/$SYSTEM_TYPE/libvorbisenc.so.2 ./bin/lib mkdir -p ./bin/share/terminfo - cp -rfp /lib/terminfo/* ./bin/share/terminfo + + if [[ -d "/lib/terminfo/" ]]; then + cp -rfp /lib/terminfo/* ./bin/share/terminfo # debian buster + else + cp -rfp /usr/share/terminfo/* ./bin/share/terminfo # ubuntu mantic + fi fi