From 3a77360e6a7f41db20c126a6a91d46591b0390d0 Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 8 Feb 2007 19:54:42 +0000 Subject: another small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@162 04377dda-e619-0410-9926-eae83683ac58 --- src/simplaret | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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 -- cgit v1.2.3