From: rhatto Date: Thu, 8 Feb 2007 19:54:42 +0000 (+0000) Subject: another small fix X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3a77360e6a7f41db20c126a6a91d46591b0390d0;p=simplepkg.git another small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@162 04377dda-e619-0410-9926-eae83683ac58 --- 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