Remove unnecessary local var declaration. Fixes #535
parent
5ad00f13fa
commit
4cf56ae186
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")"
|
||||||
|
|
Loading…
Reference in New Issue