- cd "$builddir/release"
- # mympd has no safe way to start without it doing something
- [ -x mympd >/dev/null 2>&1 ] || return 1
- # we want to check a specific exit code so we have to turn off errexit
- set +e
- for x in config script; do
- if [ -x cli_tools/mympd-$x ]; then
- ./cli_tools/mympd-$x -h >/dev/null 2>&1
- [ $? -ne 1 ] && return 1
- fi
- done
- set -e
+ cd "$builddir/release/bin" || exit 1
+ ./mympd -h >/dev/null 2>&1 || return 1
+ if [ -x cli_tools/mympd-script ]; then
+ # we want to check exit code so we have to turn off errexit
+ set +e
+ ./mympd-script -h >/dev/null 2>&1
+ [ $? -ne 1 ] && return 1
+ set -e
+ fi