set -e
-PROGNAME=$(basename $0)
+PROGNAME=$(basename "$0")
LIBEXEC="@libexec@"
usage() {
for subcommand in ${LIBEXEC}/*.sh;
do
- echo " $(basename $subcommand .sh)"
+ echo " $(basename "$subcommand" .sh)"
done
}
exit 1
else
shift
- exec $subcommand "$@"
+ exec "$subcommand" "$@"
fi
;;
esac