remove install files as soon as we're done with them
authorAJ ONeal <aj@therootcompany.com>
Thu, 7 May 2020 02:30:44 +0000 (02:30 +0000)
committerAJ ONeal <aj@therootcompany.com>
Thu, 7 May 2020 02:30:44 +0000 (02:30 +0000)
flutter/install.bash
golang/install.bash
node/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
 
 ###################
index 59ca0f4df08321a2c951a7bb9f464f79912e77e6..caeea6e504ce237f53a4c19850fede71ffa2f758 100644 (file)
@@ -83,6 +83,7 @@ pushd "$WEBI_TMP" 2>&1 >/dev/null
       cp -Hr ./go*/* "$new_go_home/" 2>/dev/null
       cp -Hr ./go*/.* "$new_go_home/" 2>/dev/null
     fi
+    rm -rf ./go*
 
     # Install x go
     $new_go_home/bin/go get golang.org/x/tools/cmd/goimports > /dev/null 2>/dev/null
index 0d1f24df08866415f1708b3b61eb02bc01871232..3671a71370567e56320c88e16c09737d67e9f9ea 100644 (file)
@@ -133,6 +133,7 @@ pushd "$WEBI_TMP" 2>&1 >/dev/null
       cp -Hr ./node*/* "$new_node_home/" 2>/dev/null
       cp -Hr ./node*/.* "$new_node_home/" 2>/dev/null
     fi
+    rm -rf ./node*
 popd 2>&1 >/dev/null
 
 ###################