From 2bb9fa036dcd54e19f192cb81ebeeac98c5f1390 Mon Sep 17 00:00:00 2001 From: Akash Manohar J Date: Fri, 22 May 2015 10:17:27 +0530 Subject: [PATCH] Simplify tag/commit to ref --- lib/commands/install.sh | 2 +- lib/commands/reshim.sh | 4 ++-- lib/commands/uninstall.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/commands/install.sh b/lib/commands/install.sh index 80122080..b121b847 100644 --- a/lib/commands/install.sh +++ b/lib/commands/install.sh @@ -5,7 +5,7 @@ install_command() { check_if_plugin_exists $plugin_path IFS=':' read -a version_info <<< "$full_version" - if [ "${version_info[0]}" = "tag" ] || [ "${version_info[0]}" = "commit" ]; then + if [ "${version_info[0]}" = "ref" ]; then local install_type="${version_info[0]}" local version="${version_info[1]}" else diff --git a/lib/commands/reshim.sh b/lib/commands/reshim.sh index 562da2bf..73887986 100644 --- a/lib/commands/reshim.sh +++ b/lib/commands/reshim.sh @@ -57,7 +57,7 @@ generate_shim_for_executable() { check_if_plugin_exists $plugin_path IFS=':' read -a version_info <<< "$full_version" - if [ "${version_info[0]}" = "tag" ] || [ "${version_info[0]}" = "commit" ]; then + if [ "${version_info[0]}" = "ref" ]; then local install_type="${version_info[0]}" local version="${version_info[1]}" else @@ -76,7 +76,7 @@ generate_shims_for_version() { check_if_plugin_exists $plugin_path IFS=':' read -a version_info <<< "$full_version" - if [ "${version_info[0]}" = "tag" ] || [ "${version_info[0]}" = "commit" ]; then + if [ "${version_info[0]}" = "ref" ]; then local install_type="${version_info[0]}" local version="${version_info[1]}" else diff --git a/lib/commands/uninstall.sh b/lib/commands/uninstall.sh index 82b60a24..b6c76b29 100644 --- a/lib/commands/uninstall.sh +++ b/lib/commands/uninstall.sh @@ -6,7 +6,7 @@ uninstall_command() { check_if_plugin_exists $plugin_path IFS=':' read -a version_info <<< "$full_version" - if [ "${version_info[0]}" = "tag" ] || [ "${version_info[0]}" = "commit" ]; then + if [ "${version_info[0]}" = "ref" ]; then local install_type="${version_info[0]}" local version="${version_info[1]}" else