summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-28 19:17:19 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-28 19:17:19 -0500
commit56f394ecbe65b5aba13759237f8a6cbc645e5e3d (patch)
treea8cd7eeeb07065294588a8dbe2ce236c5632ee29
parent144466aaa12ef0aed8a53767becae6033df9b3cf (diff)
fix getopts for libremkchroot
-rwxr-xr-xsrc/chroot-tools/libremkchroot15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/chroot-tools/libremkchroot b/src/chroot-tools/libremkchroot
index 3072b9e..992c6e5 100755
--- a/src/chroot-tools/libremkchroot
+++ b/src/chroot-tools/libremkchroot
@@ -1,23 +1,20 @@
#!/bin/bash
-# LibreMkChroot
-# Creates a chroot
+# libremkchroot
# Copyright 2011, 2012 Luke Shumaker
-
-# ---------- GNU General Public License 3 ----------
-
+#
# This file is part of Parabola.
-
+#
# Parabola is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
-
+#
# Parabola is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-
+#
# You should have received a copy of the GNU General Public License
# along with Parabola. If not, see <http://www.gnu.org/licenses/>.
@@ -41,7 +38,7 @@ usage() {
main() {
archroot_args=();
- while getopts 'hfd:C:M:' arg; do
+ while getopts 'hC:M:' arg; do
case "$arg" in
C|M) archroot_args+=("-$arg" "$OPTARG");;