Test whether a filesystem path is executable.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_validate_executable

Purpose

Test whether a filesystem path is executable.

Arguments

  • $1 — Path to test.

Returns

  • 0 when the path is executable; 1 otherwise.

Usage

  sgnd_validate_executable "/bin/bash"