Fuego_Object_Details >> Issue_0015 >> function_post_build >> Fuego_closed_issues 

Fuego 1.2 wiki

Login

function is on target path in split format

NAME [edit section]

= NAME =
is_on_target_path

SYNOPSIS [edit section]

= SYNOPSIS =
 * is_on_target_path <item> <varname>
The function is_on_target_path scans for the given filesystem item (file or directory) on the target device's PATH, and if found puts the absolute path of the item into the indicated variable.
The function is_on_target_path scans for the given filesystem item (file or directory) on the target device's PATH, and if found puts the absolute path
of the item into the indicated variable.

EXAMPLES [edit section]

= EXAMPLES =
Here are some sample invocations:
{{{#!YellowBox
    is_on_target_path java JAVA_PROGRAM
    assert_define JAVA_PROGRAM
}}}

ENVIRONMENT and ARGUMENTS [edit section]

= ENVIRONMENT and ARGUMENTS =
 * $1 is the item to find in the remote filesystem
 * $2 is the name of the variable to set

RETURN [edit section]

= RETURN =
Returns non-zero on error.  If the item is found, the full path to
the item is returned as the value of the specified variable.

SOURCE [edit section]

= SOURCE =
Located in ''scripts/functions.sh''

SEE ALSO [edit section]

test_pre_check, is_on_target
= SEE ALSO =
 * [[function_test_pre_check|test_pre_check]], [[function_is_on_target|is_on_target]]
TBWiki engine 1.9.2 by Tim Bird