> So I guess you need to do this: Actually, the snippet I gave can be simplified since "test -x" simply returns false if it is given an empty string as argument.
#!/bin/bash ... if CMD="$(command -v update-menus 2>/dev/null)" && [ -x "$CMD" ] ; then update-menus fi -- Thomas Hood <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]