mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 14:51:49 +00:00
Update install.sh
This commit is contained in:
parent
01da02ebaa
commit
a47f8280e6
@ -371,12 +371,8 @@ append_to_file() {
|
||||
local file=$1
|
||||
local code=$2
|
||||
|
||||
if ! grep -q "$code" "$file"; then
|
||||
echo "$code" >> "$file"
|
||||
echo "Added code to $file"
|
||||
else
|
||||
echo "Code already present in $file"
|
||||
fi
|
||||
echo "code added to the file"
|
||||
}
|
||||
|
||||
nvm_do_install() {
|
||||
|
Loading…
Reference in New Issue
Block a user