]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
jail-update: small fixes
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 5 Apr 2007 23:21:49 +0000 (23:21 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 5 Apr 2007 23:21:49 +0000 (23:21 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@270 04377dda-e619-0410-9926-eae83683ac58

trunk/src/jail-commit
trunk/src/jail-update

index 61b93bf986239977c9bfbdb916cc90e027286efb..9e2a031ff850cf5e73cbb66630d8ede80106412d 100755 (executable)
@@ -135,6 +135,8 @@ if [ "$1" == "--help" ]; then
   usage
 elif [ "$1" == "--all" ]; then
   template_svn_commit $BASE_CONF/templates
+elif echo $1 | grep -q -e "^--"; then
+  usage
 elif [ ! -z "$1" ]; then
   do_commit $1 $2
 else
index 7252f94c9ba753d78c4392c4208c57beea9de156..8cfc49af636a80c3ac1e239d7aec5f2b045f69b5 100755 (executable)
@@ -34,7 +34,7 @@ function usage {
 
 }
 
-if [ -z "$1" ] || [ "$1" == "--help" ]; then
+if [ -z "$1" ] || [ "$1" == "--help" ] || echo $1 | grep -q -e "^--"; then
   usage
   exit 1
 fi