Mercurial > feed-push
changeset 4:70bf588021fa draft
fix setup script
Signed-off-by: Changaco <changaco ατ changaco δοτ net>
author | Changaco <changaco ατ changaco δοτ net> |
---|---|
date | Mon, 16 Apr 2012 00:27:53 +0200 |
parents | 0d4378996672 |
children | b88065b70ecd |
files | setup |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/setup +++ b/setup @@ -27,12 +27,12 @@ confdir="${DESTDIR}etc/$progname" if [ "$action" == install ]; then install -v -m 755 -D $progname "$_PREFIX/bin/$progname" install_dir examples "$_PREFIX/share/$progname" - [ -d /etc/rc.d ] && install_dir rc.d "${DESTDIR}etc" && mkdir -v "$confdir" + [ -d /etc/rc.d ] && install_dir rc.d "${DESTDIR}etc" && install -vd "$confdir" elif [ "$action" == uninstall ]; then remove "$_PREFIX/bin/$progname" remove "$_PREFIX/share/$progname/examples" remove "${DESTDIR}etc/rc.d/$progname" - if [ $(ls -a "$confdir") -eq 2 ]; then rmdir "$confdir" + if [ $(ls -a "$confdir" | wc -l) -eq 2 ]; then rmdir "$confdir" else echo "not removing config dir $confdir (not empty)" fi elif [ "$action" == update ]; then