From 8e2dcc9511da17fcfbe6859578a25e29a7d52ef2 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 29 Sep 2018 17:35:39 +0800 Subject: [PATCH] Clean up after yourself --- ghcup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ghcup.sh b/ghcup.sh index 4333c04..30b4924 100755 --- a/ghcup.sh +++ b/ghcup.sh @@ -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 )