Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Richo hax #1

Merged
merged 2 commits into from

2 participants

@richo

Fix a couple of style issues

@samurai samurai merged commit a1a44fa into from
@richo

\o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 3, 2012
  1. @richo

    Remove uncessary echo

    richo authored
  2. @richo

    Whitespace fixes

    richo authored
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +4 −4 autoshot.sh
View
8 autoshot.sh
@@ -6,7 +6,7 @@ MONTH_ENUM="Jan:01 Feb:02 Mar:03 Apr:04 May:05 Jun:06 Jul:07 Aug:08 Sept:09 Oct:
getMonth()
{
##$1 here is the short-string representation of a month
- for month in `echo $MONTH_ENUM`; do
+ for month in $MONTH_ENUM; do
echo $month | grep $1 | awk -F ':' '{print $2}'
done ;
@@ -24,9 +24,9 @@ doPadding()
}
##this will return the date that is most recent
-##the order the dates are put in matters very much, as
+##the order the dates are put in matters very much, as
##the log and vim-cmd date formats differ. this function
-##takes $1 from the log and $2 from vim-cmd, converts them
+##takes $1 from the log and $2 from vim-cmd, converts them
##into the standard comparison format, runs that through sort -rn,
##and finally returns the original ($1 or $2, raw from their sources)
##as the 'most recent event'
@@ -38,7 +38,7 @@ cmptimes()
##so all we had to do was convert string month to int, then rebuild
##in the proper format
cmp_offtime="`echo $1 | awk '{print $NF}'`-$cmp_offtime_month-`echo $1 | awk '{print $2" "$3}'`"
- ##snapshot dates from vim-cmd are much more of a beating as a
+ ##snapshot dates from vim-cmd are much more of a beating as a
##number of different values arent padded, the below rectifies that
cmp_shottime_date="`echo $2 | awk '{print $1}' | awk -F '/' '{print $3" "$1" "$2}'`"
cmp_shottime_year=`echo $cmp_shottime_date | awk '{print $1}'`
Something went wrong with that request. Please try again.