Skip to content

Commit

Permalink
Merge pull request #2 from bluefireteam/luan.windows-fix
Browse files Browse the repository at this point in the history
Fix script so it will work on windows
  • Loading branch information
luanpotter committed Mar 29, 2022
2 parents dc5c5b5 + d8c7fee commit 5e4d36d
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions setup.sh
@@ -1,22 +1,13 @@
#!/usr/bin/env bash
#!/usr/bin/env bash -e

version=$1
run_bootstrap=$2

echo Installing Melos $version
echo "Installing Melos $version..."

if [ -x "$(command -v flutter)" ]
then
flutter pub global activate melos $version
elif [ -x "$(command -v dart)" ]
then
dart pub global activate melos $version
else
echo 'Error: Either dart or flutter needs to be on the PATH.' >&2
exit 1
fi
dart pub global activate melos $version

if [ "$run_bootstrap" != "false" ]
then
echo Running melos bootstrap
melos bootstrap
if [ "$run_bootstrap" != "false" ]; then
echo 'Running melos bootstrap...'
dart pub global run melos bootstrap
fi

0 comments on commit 5e4d36d

Please sign in to comment.