From 78fee866f53df567b79c6028d0cca04c584a46dd Mon Sep 17 00:00:00 2001 From: Matthew Campbell Date: Fri, 1 Jan 2016 22:33:45 -0500 Subject: [PATCH] Remove usage of declare --- test/install_script/nvm_detect_profile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/install_script/nvm_detect_profile b/test/install_script/nvm_detect_profile index 4a15efa..b459afc 100755 --- a/test/install_script/nvm_detect_profile +++ b/test/install_script/nvm_detect_profile @@ -27,25 +27,25 @@ setup # # .bashrc should be detected for bash -NVM_DETECT_PROFILE="$(declare SHELL="/bin/bash"; unset PROFILE; nvm_detect_profile)" +NVM_DETECT_PROFILE="$(SHELL="/bin/bash"; unset PROFILE; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" != "$HOME/.bashrc" ]; then die "nvm_detect_profile didn't pick \$HOME/.bashrc for bash" fi # $PROFILE should override .bashrc profile detection -NVM_DETECT_PROFILE="$(declare SHELL="/bin/bash"; declare PROFILE="test_profile"; nvm_detect_profile)" +NVM_DETECT_PROFILE="$(SHELL="/bin/bash"; PROFILE="test_profile"; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" != "test_profile" ]; then die "nvm_detect_profile ignored \$PROFILE" fi # .zshrc should be detected for zsh -NVM_DETECT_PROFILE="$(declare SHELL="/usr/bin/zsh"; unset PROFILE; nvm_detect_profile)" +NVM_DETECT_PROFILE="$(SHELL="/usr/bin/zsh"; unset PROFILE; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" != "$HOME/.zshrc" ]; then die "nvm_detect_profile didn't pick \$HOME/.zshrc for zsh" fi # $PROFILE should override .zshrc profile detection -NVM_DETECT_PROFILE="$(declare SHELL="/usr/bin/zsh"; declare PROFILE="test_profile"; nvm_detect_profile)" +NVM_DETECT_PROFILE="$(SHELL="/usr/bin/zsh"; PROFILE="test_profile"; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" != "test_profile" ]; then die "nvm_detect_profile ignored \$PROFILE" fi @@ -56,14 +56,14 @@ fi # # $PROFILE is a valid file -NVM_DETECT_PROFILE="$(declare PROFILE="test_profile"; nvm_detect_profile)" +NVM_DETECT_PROFILE="$(PROFILE="test_profile"; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" != "test_profile" ]; then die "nvm_detect_profile didn't pick \$PROFILE when it was a valid file" fi # $PROFILE is not a valid file rm "test_profile" -NVM_DETECT_PROFILE="$(declare PROFILE="test_profile"; nvm_detect_profile)" +NVM_DETECT_PROFILE="$(PROFILE="test_profile"; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" = "test_profile" ]; then die "nvm_detect_profile picked \$PROFILE when it was an invalid file" fi