mirror of
https://codeberg.org/reflect/install.git
synced 2025-09-14 10:13:42 +02:00
Compare commits
No commits in common. "master" and "1.0.1" have entirely different histories.
1 changed files with 11 additions and 17 deletions
28
install.sh
28
install.sh
|
@ -49,30 +49,20 @@ install_reflect() {
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Download and install the Reflect repository
|
||||
if [[ "$install" != "n" ]]; then
|
||||
if ! [ -d "reflect" ] ; then
|
||||
git submodule add https://codeberg.org/reflect/reflect
|
||||
fi
|
||||
|
||||
# Update submodules
|
||||
git submodule update --init --recursive
|
||||
if ! [ -d "reflect" ] ; then
|
||||
git submodule add https://codeberg.org/reflect/reflect
|
||||
fi
|
||||
|
||||
# Update submodules
|
||||
git submodule update --init --recursive
|
||||
|
||||
# Install dependencies with composer
|
||||
(cd reflect && composer install --classmap-authoritative)
|
||||
|
||||
# Bail out if composer didn't create a vendor folder
|
||||
if ! [ -d "reflect/vendor" ] ; then
|
||||
echo_err "Something went wrong with the installation."
|
||||
|
||||
# Script was not run with the install flag disabled, this is probably a bug
|
||||
if [[ "$install" != "n" ]]; then
|
||||
exit_report
|
||||
fi
|
||||
|
||||
echo_err "Make sure you have cloned the Reflect repository. Or run without '--install=n'."
|
||||
exit 1
|
||||
exit_report
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -210,7 +200,11 @@ main() {
|
|||
|
||||
check_sys_depend
|
||||
|
||||
install_reflect
|
||||
# Download and install the Reflect repository
|
||||
if [[ "$install" != "n" ]]; then
|
||||
install_reflect
|
||||
fi
|
||||
|
||||
configure_reflect
|
||||
|
||||
echo
|
||||
|
|
Loading…
Add table
Reference in a new issue