mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-12 07:01:50 +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 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