X-Git-Url: https://git.josue.xyz/?p=webi-installers%2F.git;a=blobdiff_plain;f=flutter%2Finstall.sh;fp=flutter%2Finstall.sh;h=36ab4e1c00f175a675cab1ce1b10bd652451bd68;hp=9626eb36f987a62f0f91707adc9338ac44a1f28d;hb=ca7a838c6fde6052124947ff442aa9e6056f5e28;hpb=704265583cff80363fec60c4088f5b91f6d98bd0 diff --git a/flutter/install.sh b/flutter/install.sh index 9626eb3..36ab4e1 100644 --- a/flutter/install.sh +++ b/flutter/install.sh @@ -21,7 +21,7 @@ pkg_src_cmd="$HOME/.local/opt/flutter-v$WEBI_VERSION/bin/flutter" pkg_src_dir="$HOME/.local/opt/flutter-v$WEBI_VERSION" pkg_src="$pkg_src_dir" -pkg_get_current_version() { +function pkg_get_current_version() { # 'flutter --version' outputs a lot of information: # Flutter 1.19.0-4.1.pre • channel beta • https://github.com/flutter/flutter.git # Framework • revision f994b76974 (4 days ago) • 2020-06-09 15:53:13 -0700 @@ -32,7 +32,7 @@ pkg_get_current_version() { echo "$(flutter --version 2> /dev/null | head -n 1 | cut -d' ' -f2)" } -pkg_format_cmd_version() { +function pkg_format_cmd_version() { # 'flutter 1.19.0' is the canonical version format for flutter my_version="$1" echo "$pkg_cmd_name $my_version"