Skip to content

Commit

Permalink
feat: precache
Browse files Browse the repository at this point in the history
  • Loading branch information
wrbl606 committed Jul 12, 2024
1 parent 30e4cc5 commit fa1b054
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install-flutter-sdk.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

CHANNEL="stable"
PRECACHE="no"
while getopts 'c:p:' param; do
case $param in
c) CHANNEL="$OPTARG" ;;
Expand All @@ -18,6 +19,6 @@ git clone -b "$CHANNEL" https://github.com/flutter/flutter.git "$FLUTTER_PATH"
echo "$LOCALAPPDATA\Pub\Cache\bin" # Windows
} >> "$GITHUB_PATH"

if [ -z ${PRECACHE+x} ]; then
if [[ $PRECACHE != "no" ]]; then
$FLUTTER_PATH/bin precache $PRECACHE
fi

0 comments on commit fa1b054

Please sign in to comment.