aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-02-08 19:54:42 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-02-08 19:54:42 +0000
commit3a77360e6a7f41db20c126a6a91d46591b0390d0 (patch)
tree1358631e9d0f6b92bbaf9186622276f0ea595fee /src
parent1eb00c71968df7c81cbf5fc85093bc4bd5b77a96 (diff)
downloadsimplepkg-3a77360e6a7f41db20c126a6a91d46591b0390d0.tar.gz
simplepkg-3a77360e6a7f41db20c126a6a91d46591b0390d0.tar.bz2
another small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@162 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-rwxr-xr-xsrc/simplaret5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/simplaret b/src/simplaret
index 3b2fbb0..8735074 100755
--- a/src/simplaret
+++ b/src/simplaret
@@ -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