Update setup.sh

This commit is contained in:
Stylix58
2021-05-01 16:41:36 +02:00
committed by GitHub
parent 7fc921dff9
commit dc5ff4644a
+7 -2
View File
@@ -29,12 +29,17 @@ if ! [ -x "$(command -v node)" ]; then
echo And make sure its in the path
exit 1
fi
if ! [ -x "$(command -v pnpm)" ]; then
if ! [ -x "$(command -v npm)" ]; then
echo 'Error: npm is not installed.' >&2
echo Please install npm from: https://nodejs.org/en/download
echo And make sure its in the path
exit 1
fi
if ! [ -x "$(command -v pnpm)" ]; then
echo PNPM is not installed but he is optionnal
echo You can install pnpm from: https://pnpm.io/installation
echo And make sure its in the path
fi
echo ✓ Dependencies are already installed
echo -------------------------------
echo Creating organization directory
@@ -61,4 +66,4 @@ git clone https://github.com/fosscord/react-native-withcss react-native-withcss
echo '{"folders":[{"path":"overview"},{"path":"cdn"},{"path":"api"},{"path":"gateway"},{"path":"media"},{"path":"server-util"},{"path":"ui"},{"path":"client"},{"path":"plugins"},{"path":"themes"},{"path":"landingpage"},{"path":"dashboard"},{"path":"support"},{"path":"css-mediaquery"},{"path":"react-native-withcss"}]}' >> fosscord.code-workspace
echo Installation finished
echo Installation finished