]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
another small fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 8 Feb 2007 19:54:42 +0000 (19:54 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 8 Feb 2007 19:54:42 +0000 (19:54 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@162 04377dda-e619-0410-9926-eae83683ac58

src/simplaret

index 3b2fbb0831706b1d2a605bee3c462b4366c9df9f..8735074e34c54b28c962690347d7e0c878b62267 100755 (executable)
@@ -784,6 +784,11 @@ function simplaret_install {
   root="/$ROOT"
   mkdir -p $root/var/log/setup/tmp
 
+  if [ "`echo $1 | sed -e 's/\(..\).*/\1/g'`" == "--" ]; then
+    echo $BASENAME: install: syntax error: expected package name
+    return 1
+  fi
+
   # now we check if ARCH and VERSION from the
   # repository are the same of the jail
   if [ "$2" != "--skip-checks" ]; then