We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b74d87 commit 6310f26Copy full SHA for 6310f26
1 file changed
.jr_rc
@@ -38,7 +38,7 @@ hdrop_PATH() {
38
append_PATH() {
39
readarray -td: pathArray <<<"$PATH"
40
# echo appending $1 onto ${pathArray[0]}
41
- if [ "$1" == "${pathArray[-1]}" ] ; then
+ if [ '$1' == '${pathArray[-1]}' ] ; then
42
echo env PATH untouched
43
else
44
export PATH=$PATH:$1
@@ -50,7 +50,7 @@ append_PATH() {
50
tdrop_PATH() {
51
52
53
- if [ "" == "${pathArray[-1]}" ] ; then
+ if [ '' == '${pathArray[-1]}' ] ; then
54
55
56
echo droping ${pathArray[0]} in tail PATH
0 commit comments