Skip to content

Commit

Permalink
Revising existence and executable tests for apex_exec
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Oct 8, 2024
1 parent 00106cf commit 786e199
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/scripts/apex_exec
Original file line number Diff line number Diff line change
Expand Up @@ -678,12 +678,13 @@ else
APEX_LDD=ldd
fi

if [ ! -x "${prog}" ] ; then
prog=`which ${prog} 2>/dev/null`
if [ ! -e "${prog}" ] ; then
echo "apex_exec: ${prog}: file does not exist"
exit
fi

if [ ! -x "${prog}" ] ; then
echo "apex_exec: $1: command not found"
if [ ! -x "${prog}" ] && [ ${python} = no ] ; then
echo "apex_exec: ${prog}: command not an executable file"
exit
fi

Expand Down

0 comments on commit 786e199

Please sign in to comment.