Commit 6634049 1 parent 7a25637 commit 6634049 Copy full SHA for 6634049
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -180,8 +180,8 @@ function install(){
180
180
local temp_zip=" ${temp_dir} /flutter.zip"
181
181
local target_dir=" ${FVM_VERSIONS_DIR} /${version_short} "
182
182
if [[ -d ${target_dir} ]]; then
183
- print_red " Error: flutter $version_short seems to has installed ,please check it! !"
184
- exit 1
183
+ print_green " flutter $version_short seems to has installed,skipted it !"
184
+ return
185
185
fi
186
186
rm -rf $temp_zip
187
187
mkdir -p ` dirname $temp_zip `
@@ -219,8 +219,8 @@ function remove(){
219
219
function latest_dev(){
220
220
local latest_dev_dir=" ${FVM_VERSIONS_DIR} /latest-dev"
221
221
if [[ -d $latest_dev_dir ]]; then
222
- print_red " Error : version:latest-dev has created!! please don't recreate, you should upgrade it by execution \` flutter upgrade\` !"
223
- exit 1
222
+ print_yellow " Warn : version:latest-dev has created!! please don't recreate, you should upgrade it by execution \` flutter upgrade\` !"
223
+ return
224
224
fi
225
225
local latest_dir=" ${FVM_VERSIONS_DIR} /latest"
226
226
if [[ ! -d $latest_dir ]]; then
You can’t perform that action at this time.
0 commit comments