aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/mkbuild
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-01-26 20:42:12 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-01-26 20:42:12 +0000
commit61e30d9d6b5dbfb3887d3e4cee93e096ab0c05c3 (patch)
tree860db41138423af0ab8a1457af553f94059e3722 /trunk/src/mkbuild
parent2aa7693ddf7069d682d8b71cfb1c1d41dc855271 (diff)
downloadsimplepkg-61e30d9d6b5dbfb3887d3e4cee93e096ab0c05c3.tar.gz
simplepkg-61e30d9d6b5dbfb3887d3e4cee93e096ab0c05c3.tar.bz2
attempting to fix #31
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@777 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src/mkbuild')
-rwxr-xr-xtrunk/src/mkbuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild
index 1098aa8..45c99fe 100755
--- a/trunk/src/mkbuild
+++ b/trunk/src/mkbuild
@@ -126,7 +126,7 @@ ${red}COPYRIGHT${normal}
This is free software. You may redistribute copies of it under the
terms of the GNU General Public License
<${yellow}http://www.gnu.org/licenses/gpl.html${normal}>. There is NO WARRANTY,
- to the extent permitted by law." | more
+ to the extent permitted by law."
}
function set_parameters {
@@ -332,6 +332,11 @@ function set_parameters {
shift
done
+ if [ "${MKBUILD_NAME:0:1}" == "-" ]; then
+ echo "Invalid mkbuild name $MKBUILD_NAME"
+ exit 1
+ fi
+
if [ ! -e "$MKBUILD_NAME" ] && [ "$ACTION" != "search" ] && [ "$ACTION" != "status" ]; then
search="`search_mkbuild`"