Clean up after yourself

This commit is contained in:
Julian Ospald 2018-09-29 17:35:39 +08:00
parent 66abdc9a65
commit 8e2dcc9511
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 5 additions and 1 deletions

View File

@ -227,6 +227,10 @@ install_ghc() {
./configure --prefix="${inst_location}"
make install
# clean up
cd ..
rm -r ghc-*-linux.tar.xz ghc-${myghcver}
)
for f in "${inst_location}"/bin/*-${myghcver} ; do
@ -284,7 +288,7 @@ self_update() {
echov "Downloading ${source_url}"
${downloader} ${downloader_opts} "${source_url}"
cp ghcup.sh "${target_location}"/ghcup.sh
mv ghcup.sh "${target_location}"/ghcup.sh
chmod +x "${target_location}"/ghcup.sh
)