mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
Update install.sh
This commit is contained in:
parent
01da02ebaa
commit
a47f8280e6
10
install.sh
10
install.sh
@ -370,13 +370,9 @@ nvm_check_global_modules() {
|
||||
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" >> "$file"
|
||||
echo "code added to the file"
|
||||
}
|
||||
|
||||
nvm_do_install() {
|
||||
|
Loading…
Reference in New Issue
Block a user