Use basename when checking the script name
authorGuido Trotter <ultrotter@google.com>
Wed, 22 Oct 2008 14:09:04 +0000 (14:09 +0000)
committerGuido Trotter <ultrotter@google.com>
Wed, 22 Oct 2008 14:09:04 +0000 (14:09 +0000)
commit273928d30492384fe5a29b0fcc8cd22f43bc1c9f
treee882bafb1400fe63d32431ce9a686826f708de75
parent262ed6d6c4c392e474fbbb2b484228539f4fbe3f
Use basename when checking the script name

Also save it to the SCRIPT_NAME variable to avoid calling basename every
time or forgetting to call it.

Reviewed-by: iustinp
common.sh