diff --git a/geuphoria.sh b/geuphoria.sh index 0e9a478..8ac65a1 100755 --- a/geuphoria.sh +++ b/geuphoria.sh @@ -41,7 +41,7 @@ check_deps(){ get_path=$(which curl) if [ ! ${get_path} ];then - printf "Please install: ${deps}\n" + printf "Please install: ${deps}" exit 0; else printf "Deps passed checks..moving on\n" @@ -80,6 +80,7 @@ extract_files(){ cd ${tmpdir} if [ ! -f ${name}-${version}.${fext} ];then printf "${0}: ${tmpdir}/${name}-${version}.${fext}: no such file\n" + exit 0; else ${extcmd} xvzf ${name}-${version}.${fext} fi @@ -117,39 +118,15 @@ uninstall_pkg(){ printf "${name}-${version} is not installed\n" if [[ $symlinks ]];then - rm /usr/bin/eui - rm /usr/bin/euc - rm /usr/bin/eutest - rm /usr/bin/eudist - rm /usr/bin/eudoc - rm /usr/bin/eushroud - rm /usr/bin/euloc - rm /usr/bin/eudis - rm /usr/bin/eubind - rm /usr/bin/eub - rm /usr/bin/echoversion - rm /usr/bin/creole - rm /usr/bin/eucoverage - fi + rm $symlinks + fi else rm -v -r ${target_dir}/${name}-${version}-Linux-${arch} if [[ $symlinks ]];then - rm /usr/bin/eui - rm /usr/bin/euc - rm /usr/bin/eutest - rm /usr/bin/eudist - rm /usr/bin/eudoc - rm /usr/bin/eushroud - rm /usr/bin/euloc - rm /usr/bin/eudis - rm /usr/bin/eubind - rm /usr/bin/eub - rm /usr/bin/echoversion - rm /usr/bin/creole - rm /usr/bin/eucoverage + rm $symlinks fi if [ ! -d ${target_dir}/${name}-${version}-Linux-${arch} ];then @@ -220,3 +197,4 @@ case $1 in """ ;; esac +