Commit 297f0f733e0a8834ccbf64296f402f6bf4feb634

Authored by Shrikant Sharat
1 parent 27bf3ceefe

The `-n` in url/dir functions screws up things.

This was messing with `-cleanup`. The fix needs to add blank `echo`s after each
call to `-antigen-get-clone-url` and `-antigen-get-clone-dir` in `-cleanup`
function, or this. I think this is better.

Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff

... ... @@ -140,9 +140,9 @@ antigen-revert () {
140 140 echo -n $ADOTDIR/repos/
141 141 # prezto pmodload workaround
142 142 if [[ "$1" == "https://github.com/sorin-ionescu/prezto.git" ]];then
143   - echo -n .zprezto
  143 + echo .zprezto
144 144 else
145   - echo -n "$1" | sed \
  145 + echo "$1" | sed \
146 146 -e 's./.-SLASH-.g' \
147 147 -e 's.:.-COLON-.g' \
148 148 -e 's.|.-PIPE-.g'
... ... @@ -155,9 +155,9 @@ antigen-revert () {
155 155  
156 156 # prezto pmodload workaround
157 157 if [[ "$1" == ".zprezto" ]];then
158   - echo -n https://github.com/sorin-ionescu/prezto.git
  158 + echo https://github.com/sorin-ionescu/prezto.git
159 159 else
160   - echo -n "$1" | sed \
  160 + echo "$1" | sed \
161 161 -e "s:^$ADOTDIR/repos/::" \
162 162 -e 's.-SLASH-./.g' \
163 163 -e 's.-COLON-.:.g' \