mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-12-22 18:37:40 +00:00
Add SHOESTRAP_BASE environment variable
This adds SHOESTRAP_BASE to helpers/default, which allows the cookbook file to be stored separately from the rest of the shoestrap stuff, making the shoestrap directory less cluttered. For example: Old way: (cd /shoestrap && ./test1.book) New way (with cookbook moved to subdirectory 'books/'): (cd /shoestrap && SHOESTRAP_BASE=/shoestrap ./books/test1.book)
This commit is contained in:
parent
dfab18817e
commit
1befe67317
@ -5,7 +5,11 @@
|
||||
##############################################################################
|
||||
|
||||
COOKBOOK_NAME="$(basename $0)"
|
||||
DIR="$( cd "$( dirname "$0" )" && pwd )"
|
||||
if [ -z "SHOESTRAP_BASE" ]; then
|
||||
DIR="$( cd "$( dirname "$0" )" && pwd )"
|
||||
else
|
||||
DIR="$SHOESTRAP_BASE"
|
||||
fi
|
||||
|
||||
#
|
||||
# Run a given recipe.
|
||||
|
Loading…
Reference in New Issue
Block a user