From 5a5d5b3a0506d895566c43a6ad31c9f553c3862d Mon Sep 17 00:00:00 2001
From: Jonas Smedegaard <dr@jones.dk>
Date: Tue, 18 Mar 2008 23:20:51 +0000
Subject: Fix checking for option escaping -- before -* .

---
 localcowbuilder-create | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/localcowbuilder-create b/localcowbuilder-create
index e6eb030..0a40f91 100755
--- a/localcowbuilder-create
+++ b/localcowbuilder-create
@@ -51,14 +51,14 @@ while [ $# -gt 0 ]; do
 			opts="$opts --debootstrapopts --arch --debootstrapopts $2"
 			shift 2
 			;;
-		--*|-*)
-			opts="$opts $1"
-			shift
-			;;
 		--)
 			shift
 			break
 			;;
+		--*|-*)
+			opts="$opts $1"
+			shift
+			;;
 		*)
 			if [ -z "$pool" ]; then
 				pool="$1"
-- 
cgit v1.2.3