Skip to content

Commit 6310f26

Browse files
authored
Update .jr_rc
fix tailing newline
1 parent 9b74d87 commit 6310f26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.jr_rc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ hdrop_PATH() {
3838
append_PATH() {
3939
readarray -td: pathArray <<<"$PATH"
4040
# echo appending $1 onto ${pathArray[0]}
41-
if [ "$1" == "${pathArray[-1]}" ] ; then
41+
if [ '$1' == '${pathArray[-1]}' ] ; then
4242
echo env PATH untouched
4343
else
4444
export PATH=$PATH:$1
@@ -50,7 +50,7 @@ append_PATH() {
5050
tdrop_PATH() {
5151
readarray -td: pathArray <<<"$PATH"
5252
# echo appending $1 onto ${pathArray[0]}
53-
if [ "" == "${pathArray[-1]}" ] ; then
53+
if [ '' == '${pathArray[-1]}' ] ; then
5454
echo env PATH untouched
5555
else
5656
echo droping ${pathArray[0]} in tail PATH

0 commit comments

Comments
 (0)