From 9963660a11e8d9b7f6643db126d678b3805fba2d Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Thu, 24 Nov 2016 15:59:16 +0800 Subject: [PATCH] [shellcheck] SC1004,SC2086 fixes in bash_completion --- bash_completion | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bash_completion b/bash_completion index 1b074f0..0be1318 100644 --- a/bash_completion +++ b/bash_completion @@ -17,11 +17,11 @@ __nvm_commands () current_word="${COMP_WORDS[COMP_CWORD]}" - COMMANDS='\ - help install uninstall use run exec \ - alias unalias reinstall-packages \ - current list ls list-remote ls-remote \ - clear-cache deactivate unload \ + COMMANDS=' + help install uninstall use run exec + alias unalias reinstall-packages + current list ls list-remote ls-remote + clear-cache deactivate unload version which' if [ ${#COMP_WORDS[@]} == 4 ]; then @@ -56,8 +56,8 @@ __nvm_aliases () { declare aliases aliases="" - if [ -d $NVM_DIR/alias ]; then - aliases="$(cd $NVM_DIR/alias && command find $PWD -type f | command sed "s:$PWD/::")" + if [ -d "$NVM_DIR/alias" ]; then + aliases="$(cd "$NVM_DIR/alias" && command find "$PWD" -type f | command sed "s:$PWD/::")" fi echo "${aliases} node stable unstable iojs" }