Skip to content

Commit

Permalink
Get the directory name from the file
Browse files Browse the repository at this point in the history
  • Loading branch information
ke4 committed Oct 18, 2023
1 parent ef43c79 commit bfc58e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/load_db_scxa_dimred.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ EXP_ID=${EXP_ID:-$2}
DIMRED_TYPE=${DIMRED_TYPE:-$3}
DIMRED_FILE_PATH=${DIMRED_FILE_PATH:-$4}
DIMRED_PARAM_JSON=${DIMRED_PARAM_JSON:-$5}
SCRATCH_DIR=${SCRATCH_DIR:-"$DIMRED_FILE_PATH"}
SCRATCH_DIR=${SCRATCH_DIR:-"$(dirname ${DIMRED_FILE_PATH})"}

# Check that necessary environment variables are defined.
[ -n ${dbConnection+x} ] || (echo "Env var dbConnection for the database connection needs to be defined. This includes the database name." && exit 1)
Expand Down

0 comments on commit bfc58e2

Please sign in to comment.