Fix wrong flutter_tools.stamp version check in shared.sh (#196)
This change fixes wrong flutter_tools.stamp version check in shared.sh. Fixed #195 Signed-off-by: Hidenori Matsubayashi <[email protected]>
This commit is contained in:
@@ -68,8 +68,14 @@ function update_flutter() {
|
|||||||
|
|
||||||
# Invalidate the flutter cache.
|
# Invalidate the flutter cache.
|
||||||
local stamp_path="$FLUTTER_DIR/bin/cache/flutter_tools.stamp"
|
local stamp_path="$FLUTTER_DIR/bin/cache/flutter_tools.stamp"
|
||||||
if [[ ! -f "$stamp_path" || "$version" != "$(cat "$stamp_path")" ]]; then
|
if [[ ! -f "$stamp_path" ]]; then
|
||||||
"$FLUTTER_EXE" --version
|
"$FLUTTER_EXE" --version
|
||||||
|
else
|
||||||
|
local v="$(cat "$stamp_path")"
|
||||||
|
v="${v%%:*}"
|
||||||
|
if [[ "$version" != "$v" ]]; then
|
||||||
|
"$FLUTTER_EXE" --version
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user