diff mbox

[2/4] br-reproduce-build: use current directory as the default for outputs

Message ID 2f64e37394ac3c2806646babb32b498a2c598224.1423910953.git.yann.morin.1998@free.fr
State Accepted
Headers show

Commit Message

Yann E. MORIN Feb. 14, 2015, 10:52 a.m. UTC
This allows the user running something like:

    cd /somewhere
    /path/to/br-reproduce-build ID

Or even have br-reproduce-build in his PATH.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 utils/br-reproduce-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Thomas Petazzoni Feb. 14, 2015, 9:08 p.m. UTC | #1
Dear Yann E. MORIN,

On Sat, 14 Feb 2015 11:52:04 +0100, Yann E. MORIN wrote:
> This allows the user running something like:
> 
>     cd /somewhere
>     /path/to/br-reproduce-build ID
> 
> Or even have br-reproduce-build in his PATH.
> 
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
>  utils/br-reproduce-build | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Thomas
diff mbox

Patch

diff --git a/utils/br-reproduce-build b/utils/br-reproduce-build
index a84bd5a..c0dc530 100755
--- a/utils/br-reproduce-build
+++ b/utils/br-reproduce-build
@@ -8,7 +8,7 @@  BASE_GIT="${BASE_GIT:-/home/test/buildroot/}"
 # Location where the output directories will be created. One
 # subdirectory, named after the build ID will be created for each
 # build.
-OUTPUT_DIR="${OUTPUT_DIR:-/home/test/outputs/}"
+OUTPUT_DIR="${OUTPUT_DIR:-$(pwd)}"
 
 if [ $# -ne 1 ] ; then
     echo "Usage: $0 buildid" ;