[Updated] euphoria-install.sh: added a 'clean' option and moved 'remove_tmp' function there
This commit is contained in:
parent
d8b21882e2
commit
3a2665fd5b
@ -113,8 +113,8 @@ uninstall_pkg(){
|
|||||||
|
|
||||||
remove_tmp(){
|
remove_tmp(){
|
||||||
echo
|
echo
|
||||||
printf "Do you want to remove ${tmpdir}/${name}-${version}-Linux-${arch} and ${tmpdir}/${name}-${version}.${fext}: "
|
printf "Do you want to remove ${tmpdir}/${name}-${version}-Linux-${arch} and ${tmpdir}/${name}-${version}.${fext}"
|
||||||
printf "[y/n]\n"
|
printf "[y/n]: "
|
||||||
read choice
|
read choice
|
||||||
|
|
||||||
if [ "${choice}" = "y" ];then
|
if [ "${choice}" = "y" ];then
|
||||||
@ -142,13 +142,14 @@ case $1 in
|
|||||||
extract_files
|
extract_files
|
||||||
install_build
|
install_build
|
||||||
post_install
|
post_install
|
||||||
remove_tmp
|
|
||||||
;;
|
;;
|
||||||
uninstall)
|
uninstall)
|
||||||
check_root
|
check_root
|
||||||
uninstall_pkg
|
uninstall_pkg
|
||||||
;;
|
;;
|
||||||
|
clean)
|
||||||
|
remove_tmp
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
printf """
|
printf """
|
||||||
[SYNOPSIS]
|
[SYNOPSIS]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user