Created
November 7, 2011 23:40
-
-
Save Jessidhia/1346563 to your computer and use it in GitHub Desktop.
'eject'-like syntax wrapper for CDR as a profile snippet
This file contains hidden or 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 bash | |
# Uses the CDR program from http://www.codeguru.com/cpp/w-p/system/cd-rom/article.php/c5775 | |
# Just remove the "eject () {" and the "}" lines to turn this into a standalone script | |
eject () { | |
if [ "$1" = "-t" ]; then | |
shift; | |
CDR close "$@" | |
else | |
CDR open "$@" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment