Skip to content

Latest commit

 

History

History
60 lines (27 loc) · 969 Bytes

README.md

File metadata and controls

60 lines (27 loc) · 969 Bytes

Utils module | build status

Miscellaneous system utilities.

/sleep/

Sleep for a number of seconds (or indefinitely).

/waitforfile/

Wait for file(s) to exist.

Wait for one or more files to exist, then exit.
Possibly wait using timeout. Exit 1 on time out.

Functions

UTILS_DEP_INSTALL()

Do nothing, but conform to the
/_dep_install/ pattern.

UTILS_WAITFORFILE()

Wait for one or more files or directories.
Optionally using timeout.

Parameters:

  • $1: list of file paths
  • $2: timeout in seconds (optional)

Returns:

  • 0: success
  • 1: time out

UTILS_SLEEP()

Sleep for number of seconds or indefinitely.

Parameters:

  • $1: timeout in seconds. Empty means sleep forever.

Returns:

  • Non-zero on error.