geuphoria.sh: Fixed symlink issues
This commit is contained in:
parent
334595c84e
commit
4e9e631222
32
geuphoria.sh
32
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,19 +118,7 @@ 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
|
||||
rm $symlinks
|
||||
fi
|
||||
|
||||
else
|
||||
@ -137,19 +126,7 @@ uninstall_pkg(){
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user