diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-09-07 19:30:50 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-09-07 19:30:50 -0400 |
commit | 38dce08bdeb16f50557190b98cf5b57adad7adbf (patch) | |
tree | 2f3429351d2ac763d4d1d7ecaf5b7d474221c01b /tools | |
parent | 5a05bb04d3f275efe8054ba95149d97cb6c4256b (diff) |
fix moving completion
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/move.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/move.sh b/tools/move.sh index 7430c4d4d9..78c91994ab 100755 --- a/tools/move.sh +++ b/tools/move.sh @@ -357,19 +357,18 @@ move_files() ( done ) ( - set -x cd shell-completion/bash for file in *; do - if [[ -d ../src/"$file" ]]; then - mv -T "$file" "../src/$file/$file.completion.bash" + if [[ -d ../../src/"$file" ]]; then + mv -T "$file" "../../src/$file/$file.completion.bash" fi done ) ( cd shell-completion/zsh for file in _*; do - if [[ -d ../src/"${file#_}" ]]; then - mv -T "$file" "../src/${file#_}/${file#_}.completion.zsh" + if [[ -d ../../src/"${file#_}" ]]; then + mv -T "$file" "../../src/${file#_}/${file#_}.completion.zsh" fi done ) |