remove install files as soon as we're done with them

This commit is contained in:
AJ ONeal
2020-05-07 02:30:44 +00:00
parent d76c736d74
commit 1c8b477efd
3 changed files with 4 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ set -u
# Install flutter #
###################
common_flutter_home="${HOME}/.local/opt/flutter"
new_flutter_home="${HOME}/.local/opt/flutter-v${WEBI_VERSION}"
new_flutter="${HOME}/.local/opt/flutter-v${WEBI_VERSION}/bin/flutter"
@@ -53,6 +54,7 @@ pushd "${WEBI_TMP}" 2>&1 >/dev/null
cp -Hr ./flutter*/* "$new_flutter_home/" 2>/dev/null
cp -Hr ./flutter*/.* "$new_flutter_home/" 2>/dev/null
fi
rm -rf ./flutter*
popd 2>&1 >/dev/null
###################