From 1687530f5ac76e3281cea2ab87e7c7c944917fc7 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 14 May 2020 16:21:43 +0200 Subject: [PATCH] [rem] unnecessary sudo in nodejs helpers --- scripts/_common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 580f233..d076a79 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -329,14 +329,14 @@ all_real_version=\$(echo "\$all_real_version" | sort --unique) while read version do echo "Update of the version \$version" - sudo \$n_install_dir/bin/n \$version + \$n_install_dir/bin/n \$version # Find the last "real" version for this major version of node. real_nodejs_version=\$(find \$version_path/\$version* -maxdepth 0 | sort --version-sort | tail --lines=1) real_nodejs_version=\$(basename \$real_nodejs_version) # Update the symbolic link for this version - sudo ln --symbolic --force --no-target-directory \$version_path/\$real_nodejs_version \$version_path/\$version + ln --symbolic --force --no-target-directory \$version_path/\$real_nodejs_version \$version_path/\$version done <<< "\$(echo "\$all_real_version")" EOF