@@ -68,7 +68,7 @@ ARCHIVE_DIR="$SRC_DIR/src/archive"
6868if [ ! -z " $2 " ]; then
6969 branch=$2
7070else
71- echo -n " Please enter the name of the branch to build from (e.g. master ): "
71+ echo -n " Please enter the name of the branch to build from (e.g. main ): "
7272 read branch
7373fi
7474
@@ -213,7 +213,7 @@ if [ "$NGINX_B" = true ] ; then
213213 download_file $ZLIB ' -' | tar xz
214214
215215 # Change to nginx directory
216- cd nginx-$NGINX_V
216+ cd nginx-$( echo $ NGINX_V | cut -d " ~ " -f1 )
217217
218218 # configure nginx
219219 ./configure --prefix=/usr/local/hestia/nginx \
@@ -242,7 +242,7 @@ if [ "$NGINX_B" = true ] ; then
242242
243243 # Cleare up unused files
244244 cd $BUILD_DIR
245- rm -r nginx-$NGINX_V openssl-$OPENSSL_V pcre-$PCRE_V zlib-$ZLIB_V
245+ rm -r nginx-$( echo $ NGINX_V | cut -d " ~ " -f1 ) openssl-$OPENSSL_V pcre-$PCRE_V zlib-$ZLIB_V
246246
247247 # Prepare Deb Package Folder Structure
248248 cd hestia-nginx_$NGINX_V /
@@ -330,7 +330,7 @@ if [ "$PHP_B" = true ] ; then
330330 download_file $PHP ' -' | tar xz
331331
332332 # Change to php directory
333- cd php-$PHP_V
333+ cd php-$( echo $ PHP_V | cut -d " ~ " -f1 )
334334
335335 # Configure PHP
336336 ./configure --prefix=/usr/local/hestia/php \
@@ -355,7 +355,7 @@ if [ "$PHP_B" = true ] ; then
355355
356356 # Cleare up unused files
357357 cd $BUILD_DIR
358- rm -r php-$PHP_V
358+ rm -r php-$( echo $ PHP_V | cut -d " ~ " -f1 )
359359
360360 # Prepare Deb Package Folder Structure
361361 cd hestia-php_$PHP_V /
0 commit comments