diff --git a/test-rebuild.sh b/test-rebuild.sh index 09839ce..5b139ea 100755 --- a/test-rebuild.sh +++ b/test-rebuild.sh @@ -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