From 07b851623457e51a8b29f6c785e973203f2f47dc Mon Sep 17 00:00:00 2001 From: Nishanth Menon Date: Wed, 3 Apr 2024 09:58:44 -0500 Subject: [PATCH] kp_common: handle whitespace for ccache folder Truncate the whitespace Signed-off-by: Nishanth Menon --- kp_common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kp_common b/kp_common index 512c2a4..00a10ff 100644 --- a/kp_common +++ b/kp_common @@ -32,9 +32,9 @@ if [ -z "$ccache" ]; then fi CCACHEDIR=/tmp/ccache else - CCACHEDIR=$(ccache -s|grep "cache directory"|sed -e "s/\s\s*/ /g"|cut -d ' ' -f3) + CCACHEDIR=$(ccache -s|grep "cache directory"|sed -e "s/\s\s*/ /g"|cut -d ' ' -f3|xargs echo) if [ -z "$CCACHEDIR" ]; then - CCACHEDIR=$(ccache -v -s|grep -i "cache directory"|sed -e "s/\s\s*/ /g"|cut -d ':' -f2) + CCACHEDIR=$(ccache -v -s|grep -i "cache directory"|sed -e "s/\s\s*/ /g"|cut -d ':' -f2|xargs echo) fi fi