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 <Hidenori.Matsubayashi@gmail.com>
This commit is contained in:
committed by
GitHub
parent
b9a5cc7605
commit
c08749ae1a
@@ -68,8 +68,14 @@ function update_flutter() {
|
||||
|
||||
# Invalidate the flutter cache.
|
||||
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
|
||||
else
|
||||
local v="$(cat "$stamp_path")"
|
||||
v="${v%%:*}"
|
||||
if [[ "$version" != "$v" ]]; then
|
||||
"$FLUTTER_EXE" --version
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user