From 93718046d79b58df4b90956d9fb4e2282071f62c Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 11 Oct 2010 17:18:05 -0500 Subject: Add epoch verification to makepkg If defined, it must be an integer. Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 136797a0..bdf63efa 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1207,6 +1207,11 @@ check_sanity() { return 1 fi + if [[ ! $epoch =~ ^[0-9]*$ ]]; then + error "$(gettext "%s must be an integer.")" "epoch" + return 1 + fi + if [[ $arch != 'any' ]]; then if ! in_array $CARCH ${arch[@]}; then if (( ! IGNOREARCH )); then -- cgit v1.2.3-70-g09d2