Skip to content

Commit

Permalink
mmfunction: add comment option to log function
Browse files Browse the repository at this point in the history
  • Loading branch information
Database committed Apr 8, 2013
1 parent c9502b9 commit b569087
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmfunctions
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ get_iso8601_c(){
log(){
logfile="/Users/database/Desktop/mm_log.txt"
OPTIND=1
while getopts ":bea" opt; do
while getopts ":beac" opt; do
case "$opt" in
b) status="start" ;; # script is beginning
e) status="end" ;; # script is ending
a) status="abort" ;; # script is aborted
c) status="comment" ;; # comment about what script is doing
esac
done
shift $(( ${OPTIND} - 1 ))
Expand Down

0 comments on commit b569087

Please sign in to comment.