From a47f8280e63efd15f3568bd9b7d6f1c3f3c59121 Mon Sep 17 00:00:00 2001 From: mannem srinivas Date: Mon, 16 Sep 2024 15:10:11 +0530 Subject: [PATCH] Update install.sh --- install.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index fec5125..c16b6a5 100755 --- a/install.sh +++ b/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() {