From 79cf4e8153d4001888301837cffda0eb9fc0a4e9 Mon Sep 17 00:00:00 2001 From: Marco Vermeulen Date: Fri, 7 Dec 2012 11:41:14 +0000 Subject: [PATCH] Remove comments from main gvm script. --- src/main/resources/scripts/gvm | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main/resources/scripts/gvm b/src/main/resources/scripts/gvm index 8d607df2..b16f0b3b 100755 --- a/src/main/resources/scripts/gvm +++ b/src/main/resources/scripts/gvm @@ -80,18 +80,8 @@ function __gvmtool_determine_current_version { CANDIDATE="$1" if [[ -n ${isolated_mode} && ${isolated_mode} == 1 ]]; then - # Work out the current version of the candidate from the PATH. - # - # As 'sed' is bad at extracting pattern matches, as opposed to - # substituting them, we have to do some extra work. This involves - # substituting the first pattern match with its group surrounded - # by double exclamation marks. Then the whole string is replaced - # by the string between those pairs of !s. Awkward. CURRENT=$(echo $PATH | sed -E "s|.gvm/${CANDIDATE}/([^/]+)/bin|!!\1!!|1" | sed -E "s|^.*!!(.+)!!.*$|\1|g") - # Before 'gvm use' is executed for the first time for a particular - # candidate, the version string will be 'current'. If that's the - # case, we need to work out the current version from the symlink. if [[ "${CURRENT}" == "current" ]]; then unset CURRENT fi