Fail on invalid input file
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-recompress?expand=0&rev=5
This commit is contained in:
parent
3a78c53afd
commit
541c83f928
@ -50,7 +50,11 @@ if [ -z "$MYOUTDIR" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
for i in $FILES; do
|
for i in $FILES; do
|
||||||
FILE=`ls -1 "$i" || ls -1 "_service:download:$i"`
|
FILE=`ls -1 "$i" || ls -1 "_service:*:$i"`
|
||||||
|
if [ ! -f "$FILE" ]; then
|
||||||
|
echo "Unknown file $i"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
UNCOMPRESS="cat"
|
UNCOMPRESS="cat"
|
||||||
BASENAME="$FILE"
|
BASENAME="$FILE"
|
||||||
if [ "${FILE%.gz}" != "$FILE" ]; then
|
if [ "${FILE%.gz}" != "$FILE" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user