- # if we can find an avenger5 directory above our current PWD, then that might tell us our name.
- if find_named_parent_dir "avenger5"; then
- # we can grab a name above the avenger5 location. let's try that.
- app_dirname="$(basename "$(dirname $PARENT_DIR_FOUND)" )"
+ # make sure we're allowed to auto-guess the folder name from our current dir.
+ if [ -z "$NO_AUTOMATIC_FOLDER_GUESS" ]; then
+ # if we can find an avenger5 directory above our current PWD, then that
+ # might tell us our name.
+ if find_named_parent_dir "avenger5"; then
+ # we can grab a name above the avenger5 location. let's try that.
+ app_dirname="$(basename "$(dirname $PARENT_DIR_FOUND)" )"
+ fi