From 3a2665fd5b58557801be117060abf49a4b88f8cf Mon Sep 17 00:00:00 2001 From: mollusk Date: Tue, 26 Jul 2016 07:44:11 -0700 Subject: [PATCH] [Updated] euphoria-install.sh: added a 'clean' option and moved 'remove_tmp' function there --- euphoria-install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/euphoria-install.sh b/euphoria-install.sh index c5c3b87..0f8f66a 100755 --- a/euphoria-install.sh +++ b/euphoria-install.sh @@ -113,8 +113,8 @@ uninstall_pkg(){ remove_tmp(){ echo - printf "Do you want to remove ${tmpdir}/${name}-${version}-Linux-${arch} and ${tmpdir}/${name}-${version}.${fext}: " - printf "[y/n]\n" + printf "Do you want to remove ${tmpdir}/${name}-${version}-Linux-${arch} and ${tmpdir}/${name}-${version}.${fext}" + printf "[y/n]: " read choice if [ "${choice}" = "y" ];then @@ -142,13 +142,14 @@ case $1 in extract_files install_build post_install - remove_tmp ;; uninstall) check_root uninstall_pkg ;; - +clean) + remove_tmp + ;; *) printf """ [SYNOPSIS]