geuphoria.sh: Fixed symlink issues

This commit is contained in:
mollusk 2017-11-19 08:11:48 -07:00
parent 334595c84e
commit 4e9e631222

View File

@ -41,7 +41,7 @@ check_deps(){
get_path=$(which curl) get_path=$(which curl)
if [ ! ${get_path} ];then if [ ! ${get_path} ];then
printf "Please install: ${deps}\n" printf "Please install: ${deps}"
exit 0; exit 0;
else else
printf "Deps passed checks..moving on\n" printf "Deps passed checks..moving on\n"
@ -80,6 +80,7 @@ extract_files(){
cd ${tmpdir} cd ${tmpdir}
if [ ! -f ${name}-${version}.${fext} ];then if [ ! -f ${name}-${version}.${fext} ];then
printf "${0}: ${tmpdir}/${name}-${version}.${fext}: no such file\n" printf "${0}: ${tmpdir}/${name}-${version}.${fext}: no such file\n"
exit 0;
else else
${extcmd} xvzf ${name}-${version}.${fext} ${extcmd} xvzf ${name}-${version}.${fext}
fi fi
@ -117,39 +118,15 @@ uninstall_pkg(){
printf "${name}-${version} is not installed\n" printf "${name}-${version} is not installed\n"
if [[ $symlinks ]];then if [[ $symlinks ]];then
rm /usr/bin/eui rm $symlinks
rm /usr/bin/euc fi
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
else else
rm -v -r ${target_dir}/${name}-${version}-Linux-${arch} rm -v -r ${target_dir}/${name}-${version}-Linux-${arch}
if [[ $symlinks ]];then if [[ $symlinks ]];then
rm /usr/bin/eui rm $symlinks
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 fi
if [ ! -d ${target_dir}/${name}-${version}-Linux-${arch} ];then if [ ! -d ${target_dir}/${name}-${version}-Linux-${arch} ];then
@ -220,3 +197,4 @@ case $1 in
""" """
;; ;;
esac esac