Skip to content

Instantly share code, notes, and snippets.

@adrianrf
Created August 3, 2011 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save adrianrf/1123735 to your computer and use it in GitHub Desktop.
Save adrianrf/1123735 to your computer and use it in GitHub Desktop.
bdsm-test.sh script as I try out BDSM
#!/usr/bin/env bdsm
source "/usr/local/bdsm/extensions/builtin/core/modules/shell/core/initialize" # Load BDSM framework
modules filesystem # We're going to use the system module.
if file_is_nonempty "$HOME/.bashrc" # Provided by the filesystem module
then
log "$HOME/.bashrc is nonempty! " # log() is provided by logging module
else
log "$HOME/.bashrc is empty! "
fi
@adrianrf
Copy link
Author

adrianrf commented Aug 3, 2011

source path amended from webpage doc at https://bdsm.beginrescueend.com/modules/shell
per suggestion on IRC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment