mirror of
https://git.centos.org/centos-git-common.git
synced 2025-02-23 08:12:56 +00:00
Send these errors to stderr
This commit is contained in:
parent
dea6c03fe6
commit
7520e4b130
3 changed files with 5 additions and 5 deletions
|
@ -141,7 +141,7 @@ shopt -s nullglob
|
||||||
set -- .*.metadata
|
set -- .*.metadata
|
||||||
if (( $# == 0 ))
|
if (( $# == 0 ))
|
||||||
then
|
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
|
exit 1
|
||||||
elif (( $# > 1 ))
|
elif (( $# > 1 ))
|
||||||
then
|
then
|
||||||
|
@ -152,7 +152,7 @@ pn=${meta%.metadata}
|
||||||
pn=${pn#.}
|
pn=${pn#.}
|
||||||
|
|
||||||
if [ ! -d .git ] || [ ! -d SPECS ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
mkdir -p SOURCES
|
mkdir -p SOURCES
|
||||||
|
|
|
@ -72,7 +72,7 @@ warn () {
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ ! -d .git ]] || [[ ! -d SPECS ]]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ shopt -s nullglob
|
||||||
set -- .*.metadata
|
set -- .*.metadata
|
||||||
if (( $# == 0 ))
|
if (( $# == 0 ))
|
||||||
then
|
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
|
exit 1
|
||||||
elif (( $# > 1 ))
|
elif (( $# > 1 ))
|
||||||
then
|
then
|
||||||
|
|
|
@ -93,7 +93,7 @@ while [[ 0 -eq 0 ]]; do
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ ! -d .git ]] || [[ ! -d SPECS ]]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue