Skip to content

Commit

Permalink
kp_common: handle whitespace for ccache folder
Browse files Browse the repository at this point in the history
Truncate the whitespace

Signed-off-by: Nishanth Menon <nm@ti.com>
  • Loading branch information
nmenon committed Apr 3, 2024
1 parent b2219c1 commit 07b8516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kp_common
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 07b8516

Please sign in to comment.