Adrian Schröter 2011-05-10 10:02:58 +00:00 committed by Git OBS Bridge
parent 59c584811f
commit e518ea9025
2 changed files with 7 additions and 1 deletions

View File

@ -46,10 +46,11 @@ if [ -z "$MYOUTDIR" ]; then
echo "ERROR: no output directory is given via --outdir parameter!" echo "ERROR: no output directory is given via --outdir parameter!"
exit 1 exit 1
fi fi
set -x
existing_archive="$PWD/$(echo $MYARCHIVE)"
cd "$MYOUTDIR" cd "$MYOUTDIR"
existing_archive=$(echo $MYARCHIVE)
if [ -e "$existing_archive" ]; then if [ -e "$existing_archive" ]; then
if [ "${existing_archive%.tar.gz}" != "$existing_archive" ]; then if [ "${existing_archive%.tar.gz}" != "$existing_archive" ]; then
tar xfz "$existing_archive" --wildcards $MYFILES || exit 1 tar xfz "$existing_archive" --wildcards $MYFILES || exit 1

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 10 10:02:43 UTC 2011 - adrian@suse.de
- fix getting input file
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 27 21:36:13 UTC 2011 - dibo@users.sourceforge.net Wed Apr 27 21:36:13 UTC 2011 - dibo@users.sourceforge.net