Send these errors to stderr

This commit is contained in:
Pat Riehecky 2014-07-22 10:01:28 -05:00 committed by Johnny Hughes
parent dea6c03fe6
commit 7520e4b130
3 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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