From 9ffe60c3151723798b96e8a0b973140d3b00921b Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Fri, 3 Aug 2012 10:39:20 +0200 Subject: [PATCH] bee-init: Fix missing shift Removing shift was a bad idea. The correct way is to check if we can shift and then shift the arguments. Fixes bug introduced in 41ac607 --- src/bee-init.sh.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bee-init.sh.in b/src/bee-init.sh.in index ab3e51e..dbaf4f9 100644 --- a/src/bee-init.sh.in +++ b/src/bee-init.sh.in @@ -155,6 +155,8 @@ function create_beefile_from_template { function initialize() { surl=${1} + [ ! -z "${surl}" ] && shift + pname=${OPT_OUTPUT} DEFAULT_CONFIGURE_OPTIONS="${@}"