function is on target path
- 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.
- $1 is the item to find in the remote filesystem
- $2 is the name of the variable to set