[Ezbench-dev] [PATCH 03/25] profile/git-repo: fix profile_get_built_versions for the first run

Petri Latvala petri.latvala at intel.com
Fri Feb 24 11:19:04 UTC 2017


From: Martin Peres <martin.peres at linux.intel.com>

---
 profiles.d/utils/git-repo.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profiles.d/utils/git-repo.sh b/profiles.d/utils/git-repo.sh
index 031dd18..6be42fb 100644
--- a/profiles.d/utils/git-repo.sh
+++ b/profiles.d/utils/git-repo.sh
@@ -137,7 +137,7 @@ function profile_get_version_list() {
 # Outputs:
 #   - Space-separated list of versions
 function profile_get_built_versions() {
-    pushd  $PROFILE_DEPLOY_BASE_DIR > /dev/null || return 1
+    pushd  "$PROFILE_DEPLOY_BASE_DIR" > /dev/null 2> /dev/null || return 1
     for file in *; do
         echo -n "$file "
     done
-- 
2.9.3



More information about the Ezbench-dev mailing list