Skip to content

Commit

Permalink
fix for old bash
Browse files Browse the repository at this point in the history
  • Loading branch information
knopp committed Aug 28, 2023
1 parent 8f96e6d commit 9d2b674
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run_build_tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ cd "$CARGOKIT_TOOL_TEMP_DIR"

BUILD_TOOL_PKG_DIR="$BASEDIR/build_tool"

if [[ -v FLUTTER_ROOT ]]; then
DART="$FLUTTER_ROOT/bin/cache/dart-sdk/bin/dart"
else
if [[ -z $FLUTTER_ROOT ]]; then # not defined
DART=dart
else
DART="$FLUTTER_ROOT/bin/cache/dart-sdk/bin/dart"
fi

cat << EOF > "pubspec.yaml"
Expand Down

0 comments on commit 9d2b674

Please sign in to comment.