From 7520e4b130b040644d301ea1967b991da04f5d96 Mon Sep 17 00:00:00 2001 From: Pat Riehecky Date: Jul 22 2014 15:01:28 +0000 Subject: Send these errors to stderr --- diff --git a/get_sources.sh b/get_sources.sh index 210d9ad..0a22451 100755 --- a/get_sources.sh +++ b/get_sources.sh @@ -141,7 +141,7 @@ shopt -s nullglob set -- .*.metadata if (( $# == 0 )) then - echo 'Missing metadata. Please run from inside a sources git repo' + echo 'Missing metadata. Please run from inside a sources git repo' >&2 exit 1 elif (( $# > 1 )) then @@ -152,7 +152,7 @@ pn=${meta%.metadata} pn=${pn#.} if [ ! -d .git ] || [ ! -d SPECS ]; then - echo 'You need to run this from inside a sources git repo' + echo 'You need to run this from inside a sources git repo' >&2 exit 1 fi mkdir -p SOURCES diff --git a/return_disttag.sh b/return_disttag.sh index de9ff29..dcde8e8 100755 --- a/return_disttag.sh +++ b/return_disttag.sh @@ -72,7 +72,7 @@ warn () { } if [[ ! -d .git ]] || [[ ! -d SPECS ]]; then - echo 'You need to run this from inside a sources git repo' + echo 'You need to run this from inside a sources git repo' >&2 exit 1 fi @@ -82,7 +82,7 @@ shopt -s nullglob set -- .*.metadata if (( $# == 0 )) then - echo 'Missing metadata. Please run from inside a sources git repo' + echo 'Missing metadata. Please run from inside a sources git repo' >&2 exit 1 elif (( $# > 1 )) then diff --git a/show_possible_srpms.sh b/show_possible_srpms.sh index 5f5fb93..83c4d08 100755 --- a/show_possible_srpms.sh +++ b/show_possible_srpms.sh @@ -93,7 +93,7 @@ while [[ 0 -eq 0 ]]; do done if [[ ! -d .git ]] || [[ ! -d SPECS ]]; then - echo 'You need to run this from inside a sources git repo' + echo 'You need to run this from inside a sources git repo' >&2 exit 1 fi