Created
August 3, 2011 20:51
-
-
Save adrianrf/1123735 to your computer and use it in GitHub Desktop.
bdsm-test.sh script as I try out BDSM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source path amended from webpage doc at https://bdsm.beginrescueend.com/modules/shell
per suggestion on IRC