From 62b5d812e21ea9b4e35fb7891c67dad99d5f3750 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 16 Aug 2022 17:29:10 +0800 Subject: [PATCH] Update install.sh --- plugins/php/versions/74/install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/php/versions/74/install.sh b/plugins/php/versions/74/install.sh index 9e93d2370..18a555a41 100755 --- a/plugins/php/versions/74/install.sh +++ b/plugins/php/versions/74/install.sh @@ -39,7 +39,11 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then mv $sourcePath/php/php-${version} $sourcePath/php/php${PHP_VER} fi - +if [ ! -d $sourcePath/php/php${PHP_VER} ];then + rm -rf $sourcePath/php/php-${version}.tar.xz + echo "reinstall php${version}" + exit 1 +fi cd $sourcePath/php/php${PHP_VER}