summaryrefslogtreecommitdiff
path: root/functions/defaults.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-02-18 19:21:49 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:42 +0100
commitb7dd97408319ce1d389c8f22cb94feba228565e3 (patch)
tree245172a1c4f422a35793e5df7e4ffa3dc058f78a /functions/defaults.sh
parent3d0af3226983b718dc7fc668763682b00d903f48 (diff)
downloadlive-build-b7dd97408319ce1d389c8f22cb94feba228565e3.zip
live-build-b7dd97408319ce1d389c8f22cb94feba228565e3.tar.gz
Adding checks for exceeding lenght of the iso header strings.
Diffstat (limited to 'functions/defaults.sh')
-rwxr-xr-xfunctions/defaults.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index e9e3d14..3b7b02d 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -849,4 +849,24 @@ Check_defaults ()
;;
esac
fi
+
+ if [ "$(echo ${LH_ISO_APPLICATION} | wc -c)" -ge 129 ]
+ then
+ Echo_error "You have specified a too long string for iso application, the maximum lenght is 128 characters."
+ fi
+
+ if [ "$(echo ${LH_ISO_PREPARER} | wc -c)" -ge 129 ]
+ then
+ Echo_error "You have specified a too long string for iso preparer, the maximum lenght is 128 characters."
+ fi
+
+ if [ "$(echo ${LH_ISO_PUBLISHER} | wc -c)" -ge 129 ]
+ then
+ Echo_error "You have specified a too long string for iso publisher, the maximum lenght is 128 characters."
+ fi
+
+ if [ "$(echo ${LH_ISO_VOLUME} | wc -c)" -ge 33 ]
+ then
+ Echo_error "You have specified a too long string for iso volume, the maximum lenght is 32 characters."
+ fi
}