test-rebuild.sh: allow running in cwd without arg

This commit is contained in:
Jens Petersen 2012-10-09 16:38:47 +09:00
parent b968d18349
commit fdb0081a16

View File

@ -2,7 +2,7 @@
set -e
PKG=$1
PKG=${1:-$(fedpkg gimmespec | sed -e "s/.spec//")}
[ -d "$PKG" -o -f "$PKG.spec" ] || fedpkg clone -a $PKG