From c15aa47b83c0ebfbc216ed11d7473c2047f8fbeb Mon Sep 17 00:00:00 2001
From: Bensong Liu <bensl@microsoft.com>
Date: Thu, 25 Mar 2021 14:12:45 +0800
Subject: [PATCH] bug fix

---
 vivado-wrapper | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vivado-wrapper b/vivado-wrapper
index b084bc8..4c6685a 100755
--- a/vivado-wrapper
+++ b/vivado-wrapper
@@ -3,7 +3,7 @@
 _vw_bin_name="$0"
 
 _vw_version_major="1"
-_vw_version_minor="5"
+_vw_version_minor="6"
 _vw_version_ext=""
 _vw_version="${_vw_version_major}.${_vw_version_minor}${_vw_version_ext}"
 
@@ -91,7 +91,7 @@ function where_is_him () {
 
 function where_am_i () {
     _my_path=`type -p ${_vw_bin_name}`
-    where_is_him "$_my_path"
+    [[ "$_my_path" = "" ]] && where_is_him "$_vw_bin_name" || where_is_him "$_my_path"
 }
 
 function naive_opt () {
-- 
GitLab