remove install files as soon as we're done with them
[webi-installers/.git] / flutter / install.bash
index 77a97c2af5377ddf077f6186f6f8a120fc325bc2..446e1e45021a7d20876fc5b5bd61e3aa5405e0b6 100644 (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
 
 ###################