diff --git a/scripts/setup/setup.sh b/scripts/setup/setup.sh index ee9df3c..859ebad 100755 --- a/scripts/setup/setup.sh +++ b/scripts/setup/setup.sh @@ -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 \ No newline at end of file +echo Installation finished