From cdaa200e4a70f41c46ffce9a191c333bdffabd52 Mon Sep 17 00:00:00 2001 From: Patrick Fruh <809734+kaeltis@users.noreply.github.com> Date: Thu, 18 Feb 2021 21:03:58 +0100 Subject: [PATCH] fix bin files for PHP8 (#315) --- bin/clean | 2 +- bin/migrate | 2 +- bin/theme | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/clean b/bin/clean index 9b9c6c3..de41ce7 100644 --- a/bin/clean +++ b/bin/clean @@ -1,6 +1,6 @@ #!/usr/bin/env php = 7 && PHP_MINOR_VERSION >= 1) ?: die('Sorry, PHP 7.1 or above is required to run XBackBone.'); +((PHP_MAJOR_VERSION >= 7 && PHP_MINOR_VERSION >= 1) || PHP_MAJOR_VERSION > 7) ?: die('Sorry, PHP 7.1 or above is required to run XBackBone.'); if (php_sapi_name() !== 'cli') { die(); } diff --git a/bin/migrate b/bin/migrate index c5f2a4c..362ca24 100644 --- a/bin/migrate +++ b/bin/migrate @@ -1,6 +1,6 @@ #!/usr/bin/env php = 7 && PHP_MINOR_VERSION >= 1) ?: die('Sorry, PHP 7.1 or above is required to run XBackBone.'); +((PHP_MAJOR_VERSION >= 7 && PHP_MINOR_VERSION >= 1) || PHP_MAJOR_VERSION > 7) ?: die('Sorry, PHP 7.1 or above is required to run XBackBone.'); if (php_sapi_name() !== 'cli') { die(); } diff --git a/bin/theme b/bin/theme index d5fdcd8..b5328dd 100644 --- a/bin/theme +++ b/bin/theme @@ -1,6 +1,6 @@ #!/usr/bin/env php = 7 && PHP_MINOR_VERSION >= 1) ?: die('Sorry, PHP 7.1 or above is required to run XBackBone.'); +((PHP_MAJOR_VERSION >= 7 && PHP_MINOR_VERSION >= 1) || PHP_MAJOR_VERSION > 7) ?: die('Sorry, PHP 7.1 or above is required to run XBackBone.'); if (php_sapi_name() !== 'cli') { die(); }