[ghc-rpm-macros] test-rebuild.sh: allow running in cwd without arg

Jens Petersen petersen at fedoraproject.org
Tue Oct 9 07:38:54 UTC 2012


commit fdb0081a169a8047e6184a6d91afcc33db7f6993
Author: Jens Petersen <petersen at redhat.com>
Date:   Tue Oct 9 16:38:47 2012 +0900

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

 test-rebuild.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
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
 


More information about the scm-commits mailing list