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
10
install.sh
10
install.sh
@ -370,13 +370,9 @@ nvm_check_global_modules() {
|
|||||||
append_to_file() {
|
append_to_file() {
|
||||||
local file=$1
|
local file=$1
|
||||||
local code=$2
|
local code=$2
|
||||||
|
|
||||||
if ! grep -q "$code" "$file"; then
|
echo "$code" >> "$file"
|
||||||
echo "$code" >> "$file"
|
echo "code added to the file"
|
||||||
echo "Added code to $file"
|
|
||||||
else
|
|
||||||
echo "Code already present in $file"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nvm_do_install() {
|
nvm_do_install() {
|
||||||
|
Loading…
Reference in New Issue
Block a user