Skip to content
/ utils Public

Space.sh module providing miscellaneous system utilities

License

Notifications You must be signed in to change notification settings

space-sh/utils

Repository files navigation

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.

About

Space.sh module providing miscellaneous system utilities

Resources

License

Stars

Watchers

Forks

Languages