Skip to content

Commit 70253a4

Browse files
committed
lib.sh: don't quietly override the user-provided TPLG dirname
Fixes commit 1494965 that added support for both relative and absolute paths. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent acc4802 commit 70253a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

case-lib/lib.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,10 @@ func_lib_get_tplg_path()
297297
local tplg=$1
298298
if [[ -z "$tplg" ]]; then # tplg given is empty
299299
return 1
300-
elif [[ -f "$TPLG_ROOT/$(basename "$tplg")" ]]; then
301-
echo "$TPLG_ROOT/$(basename "$tplg")"
302300
elif [[ -f "$tplg" ]]; then
303301
realpath "$tplg"
302+
elif [[ -f "$TPLG_ROOT/$tplg" ]]; then
303+
echo "$TPLG_ROOT/$tplg"
304304
else
305305
return 1
306306
fi

0 commit comments

Comments
 (0)