mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-28 16:11:00 -05:00
Prettify messages in setup script
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
1529d54b43
commit
ca0f1f9a4e
1 changed files with 10 additions and 9 deletions
19
bin/setup
19
bin/setup
|
@ -13,10 +13,11 @@ fi
|
||||||
if ! type yarn > /dev/null
|
if ! type yarn > /dev/null
|
||||||
then
|
then
|
||||||
cat << EOF
|
cat << EOF
|
||||||
yarn is not installed, please install Node.js, npm and yarn.
|
FATAL: Yarn could not be found.
|
||||||
Read more on Node.js official website: https://nodejs.org
|
|
||||||
And for yarn package manager at: https://yarnpkg.com/en/
|
Please follow the official installation instructions at
|
||||||
Setup will not be run
|
https://classic.yarnpkg.com/en/docs/install
|
||||||
|
and try again.
|
||||||
EOF
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -25,7 +26,7 @@ if version_lt "$(yarn --version)" '1.22.0'; then
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
FATAL: Your Yarn version is outdated.
|
FATAL: Your Yarn version is outdated.
|
||||||
|
|
||||||
Please upgrade to a version newer than 1.22.0.
|
Please upgrade to a version newer than 1.22.0 and try again.
|
||||||
See https://classic.yarnpkg.com/en/docs/install for instructions.
|
See https://classic.yarnpkg.com/en/docs/install for instructions.
|
||||||
EOF
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -35,13 +36,13 @@ if version_lt "$(node --version)" 'v10.13.0'; then
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
FATAL: Your Node.js version is outdated.
|
FATAL: Your Node.js version is outdated.
|
||||||
|
|
||||||
Please upgrade to version 10.13 or higher.
|
Please upgrade to version 10.13 or higher and try again.
|
||||||
We recommend running the latest LTS release.
|
We recommend running the latest LTS release, see https://nodejs.org/en/about/releases/ for details.
|
||||||
EOF
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "copy config files"
|
echo "Copying config files..."
|
||||||
if [ ! -f config.json ]; then
|
if [ ! -f config.json ]; then
|
||||||
cp config.json.example config.json
|
cp config.json.example config.json
|
||||||
fi
|
fi
|
||||||
|
@ -50,7 +51,7 @@ if [ ! -f .sequelizerc ]; then
|
||||||
cp .sequelizerc.example .sequelizerc
|
cp .sequelizerc.example .sequelizerc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "install packages"
|
echo "Installing packages..."
|
||||||
yarn install --pure-lockfile
|
yarn install --pure-lockfile
|
||||||
yarn install --production=false --pure-lockfile
|
yarn install --production=false --pure-lockfile
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue