From: AJ ONeal Date: Thu, 7 May 2020 02:30:44 +0000 (+0000) Subject: remove install files as soon as we're done with them X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=1c8b477efd0a1abb5c2c4e0258881985824ddb64;p=webi-installers%2F.git remove install files as soon as we're done with them --- diff --git a/flutter/install.bash b/flutter/install.bash index 77a97c2..446e1e4 100644 --- a/flutter/install.bash +++ b/flutter/install.bash @@ -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 ################### diff --git a/golang/install.bash b/golang/install.bash index 59ca0f4..caeea6e 100644 --- a/golang/install.bash +++ b/golang/install.bash @@ -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 diff --git a/node/install.bash b/node/install.bash index 0d1f24d..3671a71 100644 --- a/node/install.bash +++ b/node/install.bash @@ -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 ###################