chiark / gitweb /
Use termux_error_exit in more cases
[termux-packages] / packages / picolisp / build.sh
index edad5b719d5e920e02411434d09a6d1c2ec89869..82e04c7bda458d8aedb5d641e2a572baf18dc813 100644 (file)
@@ -28,9 +28,7 @@ fi
 termux_step_pre_configure() {
        # Validate that we have the right version:
        grep -q "Version $_PICOLISP_YEAR $_PICOLISP_MONTH $_PICOLISP_DAY" src64/version.l || {
-               echo "ERROR: Picolisp version needs to be bumped" 1>&2
-               grep Version src64/version.l 1>&2
-               exit 1
+               termux_error_exit "Picolisp version needs to be bumped"
        }
 
        if [ $TERMUX_ARCH_BITS = 64 ]; then