Skip to content

Commit

Permalink
Adjusted example thanks to adrianrf.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Aug 3, 2011
1 parent f52481e commit 07e1efa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions content/modules/shell.haml
Expand Up @@ -29,9 +29,12 @@
A simple example of this is to use the filesystem module.
%pre.code
:preserve
#!/usr/bin/env bash
source "/usr/local/bdsm/modules/shell/core/initialize" # Load BDSM framework
modules filesystem # We're going to use the system module.
#!/usr/bin/env bdsm

# Note the shebang above, this loads the BDSM framework!

modules bdsm/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
Expand Down

0 comments on commit 07e1efa

Please sign in to comment.