~jcolson/random-scripts

dc1d2303283d213a608441a95b2c1af4ec8bdfa6 — Jay Colson 5 months ago e506b59 master
changed to using env to locate bash, also changed some scripts to enable newer version of bash
5 files changed, 6 insertions(+), 6 deletions(-)

M bandwidthtest.sh
M checkjavaversion.sh
M retrieveRemoteCert.sh
M tz
M whereami
M bandwidthtest.sh => bandwidthtest.sh +1 -1
@@ 1,4 1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# requires bash, as i'm using /dev/tcp/hostname/port redirection
RED='\033[1;31m'
GREEN='\033[1;32m'

M checkjavaversion.sh => checkjavaversion.sh +1 -1
@@ 1,4 1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#Check to see if there are classes in a jar (or all jars in directory) that are incompatible (compiled for a higher version) than the specified java version
#Free as in Beer
#By Jay Colson

M retrieveRemoteCert.sh => retrieveRemoteCert.sh +1 -1
@@ 1,4 1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# retrieve remote SSL cert for inspection
#
# example command that is built

M tz => tz +1 -1
@@ 1,4 1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# checkout /private/var/db/timezone/zoneinfo to find timezones
# arguments are GMT times
TIMEZONES=( "America/New_York" "Europe/Dublin" "Asia/Calcutta")

M whereami => whereami +2 -2
@@ 1,4 1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# free as in beer
# Jay Colson - jay+nospamplease@karma.net



@@ 81,7 81,7 @@ getLocation() {
        printf "  Download and install from here: git@github.com:lindes/get-location.git\n"
        exit 1
    fi
    read -a LOCATION <<< `get-location -f json | jq -r '.coordinates[0],.coordinates[1]'`
    LOCATION=($(get-location -f json | jq -r '.coordinates[0],.coordinates[1]'))
    locationKey=`printf "%.2f,%.2f" ${LOCATION[0]} ${LOCATION[1]}`
    currentLocation=`lookupLocation ${locationKey}`
    printf "${currentLocation}\n"