Skip to content

Commit fca9a25

Browse files
committed
Make remove_path more robust
1 parent ca4944f commit fca9a25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolchain/scripts/tool_kit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ remove_path() {
743743
__path=${__path//:$__directory:/:}
744744
__path=${__path#$__directory:}
745745
__path=${__path%:$__directory}
746-
__path=$(echo "$__path" | sed "s:^$__directory\$::g")
746+
__path=$(echo "$__path" | sed "s#^$__directory\$##g")
747747
eval $__path_name=\"$__path\"
748748
export $__path_name
749749
}

0 commit comments

Comments
 (0)