mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-10 08:39:07 +00:00
Remove unnecessary local var declaration. Fixes #535
This commit is contained in:
1
nvm.sh
1
nvm.sh
@@ -808,7 +808,6 @@ nvm() {
|
|||||||
mkdir -p "$NVM_DIR/alias"
|
mkdir -p "$NVM_DIR/alias"
|
||||||
if [ $# -le 2 ]; then
|
if [ $# -le 2 ]; then
|
||||||
local DEST
|
local DEST
|
||||||
local ALIAS
|
|
||||||
for ALIAS in "$NVM_DIR"/alias/"$2"*; do
|
for ALIAS in "$NVM_DIR"/alias/"$2"*; do
|
||||||
if [ -e "$ALIAS" ]; then
|
if [ -e "$ALIAS" ]; then
|
||||||
DEST="$(cat "$ALIAS")"
|
DEST="$(cat "$ALIAS")"
|
||||||
|
Reference in New Issue
Block a user