aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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