Fix various uses of $(dirname "$0")
where use of $BASH_SOURCE
would have been more apprporiate. For example, bash -c 'source myfile.sh'
would have $0
set to bash
, but $BASH_SOURCE
would contain myfile.sh
.
BASE_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$BASE_DIR" ]]; then BASE_DIR="$PWD"; fi
source "$BASE_DIR/foo.sh"
source "$BASE_DIR/bar.sh"
Directed by Taylor Hackford. With Jamie Foxx, Regina King, Kerry Washington, Clifton Powell. The story of the life and career of the legendary rhythm and blues musician Ray Charles, from his humble beginnings in the South, where he went blind at age seven, to his meteoric rise to stardom during the 1950s and 1960s.
Directed by Jeff Tremaine. With Johnny Knoxville, Jackson Nicoll, Greg Harris, Georgina Cates. 86-year-old Irving Zisman takes a trip from Nebraska to North Carolina.
Directed by Zack Snyder. With Jackie Earle Haley, Patrick Wilson, Carla Gugino, Malin Akerman. In 1985 where former superheroes exist, the murder of a colleague.
Created by Alan Ball. With Anna Paquin, Stephen Moyer, Sam Trammell, Ryan Kwanten. Telepathic waitress Sookie Stackhouse encounters a strange new supernatural world when she meets the mysterious Bill, a southern Louisiana gentleman and vampire.