Replace the test of the which command for type command to get similar
behaviour on all OSes.
This commit is contained in:
parent
4d1562495d
commit
a79b48ebb8
|
@ -132,7 +132,7 @@ copy_icon()
|
||||||
|
|
||||||
# Debian/Mandrake
|
# Debian/Mandrake
|
||||||
|
|
||||||
which update-menus > /dev/null 2>&1
|
type update-menus > /dev/null 2>&1
|
||||||
if [ $? = 0 -a $mode = "menu" ]
|
if [ $? = 0 -a $mode = "menu" ]
|
||||||
then
|
then
|
||||||
iconname="`basename "$link"`.xpm"
|
iconname="`basename "$link"`.xpm"
|
||||||
|
@ -158,7 +158,7 @@ fi
|
||||||
if [ -d "$HOME/.kde" ]
|
if [ -d "$HOME/.kde" ]
|
||||||
then
|
then
|
||||||
kdeversion=0
|
kdeversion=0
|
||||||
if which kde-config >/dev/null 2>&1
|
if type kde-config >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
kdeversion=`kde-config -v | grep KDE: | sed -n "s/^KDE: \([^.]*\)\..*$/\1/p"`
|
kdeversion=`kde-config -v | grep KDE: | sed -n "s/^KDE: \([^.]*\)\..*$/\1/p"`
|
||||||
fi
|
fi
|
||||||
|
@ -180,7 +180,7 @@ then
|
||||||
kde_entry > "$HOME/.kde/share/applnk/Wine/$link.kdelnk"
|
kde_entry > "$HOME/.kde/share/applnk/Wine/$link.kdelnk"
|
||||||
|
|
||||||
# KDE 1.x kludge. Wake up KDE, if we can find kpanel running
|
# KDE 1.x kludge. Wake up KDE, if we can find kpanel running
|
||||||
which kwmcom >/dev/null 2>/dev/null && \
|
type kwmcom >/dev/null 2>/dev/null && \
|
||||||
ps u -C kpanel >/dev/null 2>/dev/null && \
|
ps u -C kpanel >/dev/null 2>/dev/null && \
|
||||||
kwmcom kpanel:restart
|
kwmcom kpanel:restart
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ then
|
||||||
then
|
then
|
||||||
kde_entry > "$HOME/Desktop/$link.kdelnk"
|
kde_entry > "$HOME/Desktop/$link.kdelnk"
|
||||||
# KDE 1.x kludge: wake up KDE, if we can find kfm running...
|
# KDE 1.x kludge: wake up KDE, if we can find kfm running...
|
||||||
which kfmclient >/dev/null 2>/dev/null && \
|
type kfmclient >/dev/null 2>/dev/null && \
|
||||||
ps u -C kfm >/dev/null 2>/dev/null && \
|
ps u -C kfm >/dev/null 2>/dev/null && \
|
||||||
kfmclient refreshDesktop
|
kfmclient refreshDesktop
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue