Skip to content

Commit bba80a1

Browse files
veprblamadio
authored andcommitted
thisroot.sh: prefer local variables
1 parent 0d54727 commit bba80a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/thisroot.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ drop_from_path()
1515
return 1
1616
fi
1717

18-
p=$1
19-
drop=$2
18+
local p=$1
19+
local drop=$2
2020

2121
newpath=`echo $p | sed -e "s;:${drop}:;:;g" \
2222
-e "s;:${drop}\$;;g" \

0 commit comments

Comments
 (0)