From 3efa223dbe2a7738b11af7c3e8479ff9ec8a40d5 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 4 May 2017 17:25:20 +0200 Subject: suppress unimportant errors on stderr --- bin/common-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/common-functions b/bin/common-functions index 7b5aa18..d6b4858 100755 --- a/bin/common-functions +++ b/bin/common-functions @@ -21,7 +21,7 @@ find_pkgbuild() { find_repository_with_commit() { for repository in "${!repo_paths[@]}"; do - if [ "$(git -C "${repo_paths["${repository}"]}" cat-file -t "$1")" == "commit" ]; then + if [ "$(git -C "${repo_paths["${repository}"]}" cat-file -t "$1" 2> /dev/null)" == "commit" ]; then echo "${repository}" return 0 fi -- cgit v1.2.3-54-g00ecf