Commit 34ccf56f authored by Roque's avatar Roque

fix reference check issue with paths

parent df5b2c4a
...@@ -93,6 +93,7 @@ function checkParameters { ...@@ -93,6 +93,7 @@ function checkParameters {
fi fi
fi fi
EBULK_DATASET_FILE="$DATASET_DIR$EBULK_DATASET_FILE_NAME" EBULK_DATASET_FILE="$DATASET_DIR$EBULK_DATASET_FILE_NAME"
if [ "$ALWAYS_YES" = "true" ] ; then
if ! [[ $REFERENCE =~ $re ]] ; then if ! [[ $REFERENCE =~ $re ]] ; then
if [ "$REFERENCE" = "." ] && [[ -z "$STORAGE" ]] ; then if [ "$REFERENCE" = "." ] && [[ -z "$STORAGE" ]] ; then
echo echo
...@@ -106,6 +107,7 @@ function checkParameters { ...@@ -106,6 +107,7 @@ function checkParameters {
fi fi
helpReadme >&2; return 1 helpReadme >&2; return 1
fi fi
fi
if [[ $DATASET_DIR != $REFERENCE ]]; then if [[ $DATASET_DIR != $REFERENCE ]]; then
if [ "$REFERENCE" = "." ] ; then if [ "$REFERENCE" = "." ] ; then
REFERENCE=$(basename "$DATASET_DIR") REFERENCE=$(basename "$DATASET_DIR")
...@@ -697,7 +699,7 @@ while [ "$1" != "" ]; do ...@@ -697,7 +699,7 @@ while [ "$1" != "" ]; do
shift shift
done done
for ELEMENT in '' '-d' '--directory' '-s' '--storage' '-cs' '--custom-storage' '-a' '--advanced' '-c' '--chunk' '-bs' '--batch-size' '-dc' '--discard-changes' '-dd' '--set-description'; do for ELEMENT in '' '-d' '--directory' '-s' '--storage' '-cs' '--custom-storage' '-a' '--advanced' '-c' '--chunk' '-bs' '--batch-size' '-y' '--yes' '-dc' '--discard-changes' '-dd' '--set-description'; do
if [ "$ELEMENT" = "$REFERENCE" ]; then if [ "$ELEMENT" = "$REFERENCE" ]; then
REFERENCE="." REFERENCE="."
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment