Skip to content

Instantly share code, notes, and snippets.

@travisbhartwell
Created March 7, 2009 04:30
Show Gist options
  • Select an option

  • Save travisbhartwell/75222 to your computer and use it in GitHub Desktop.

Select an option

Save travisbhartwell/75222 to your computer and use it in GitHub Desktop.
#!/bin/bash
ledger bal 2>&1 > /dev/null
# Re-do to show error
if [ "$?" -ne 0 ]; then
ledger bal
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment