workarounds for fluter

This commit is contained in:
AJ ONeal
2020-10-05 22:07:59 +00:00
parent 045a97cd7a
commit 8b96119dc9
2 changed files with 12 additions and 1 deletions
+2 -1
View File
@@ -211,7 +211,8 @@ webi_path_add() {
# in case pathman was recently installed and the PATH not updated
mkdir -p "$_webi_tmp"
"$HOME/.local/bin/pathman" add "$1" | grep "export" >> "$_webi_tmp/.PATH.env" || true
# prevent "too few arguments" output on bash when there are 0 lines of stdout
"$HOME/.local/bin/pathman" add "$1" | grep "export" 2>/dev/null >> "$_webi_tmp/.PATH.env" || true
}
# group common pre-install tasks as default
+10
View File
@@ -10,8 +10,18 @@ set -u
#
# Their defaults are defined in _webi/template.sh at https://github.com/webinstall/packages
# Every package should define these 6 variables
pkg_cmd_name="flutter"
pkg_dst_cmd="$HOME/.local/opt/flutter/bin/flutter"
pkg_dst_dir="$HOME/.local/opt/flutter"
pkg_dst="$pkg_dst_dir"
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() {
# 'flutter --version' outputs a lot of information:
# Flutter 1.19.0-4.1.pre • channel beta • https://github.com/flutter/flutter.git