Skip to content

Commit

Permalink
Removed support for script based extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
beckje01 authored and marc0der committed Jan 1, 2013
1 parent a5520af commit 2792c2e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/main/resources/scripts/gvm-main.sh
Expand Up @@ -78,14 +78,6 @@ function gvm {
return 1
fi

# ...or as a script on the path.
SCRIPT_PATH="${GVM_DIR}/ext/gvm-$1.sh"
if [[ -z "${CMD_FOUND}" && ! -f "${SCRIPT_PATH}" ]]; then
echo -e "\nInvalid command: $1"
__gvmtool_help
return 1
fi

# Check whether the candidate exists
if [[ -n "$2" && -z $(echo ${GVM_CANDIDATES[@]} | grep -w "$2") ]]; then
echo -e "\nStop! $2 is not a valid candidate."
Expand All @@ -96,8 +88,5 @@ function gvm {
if [ -n "${CMD_FOUND}" ]; then
# It's available as a shell function
__gvmtool_"${CONVERTED_CMD_NAME}" "$2" "$3"
else
# It's a shell script in the extensions directory
${SCRIPT_PATH} "$1" "$2" "$3"
fi
}

0 comments on commit 2792c2e

Please sign in to comment.