Skip to content

Commit

Permalink
Fixed broken quote
Browse files Browse the repository at this point in the history
  • Loading branch information
Aklakan committed Jan 23, 2024
1 parent 2427de8 commit ee86bad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mvn-sync/v2/resources/run-dcat-mvn-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ fi
process-file() {
REPO="$1"
FILE="$2"
EVENT=$3"
EVENT="$3"

echo "Detected event $EVENT on file: $FILE"

# Match dataset artifacts - for those files we instantiate metadata projects
export IN_TYPE=`echo "$FILE" | sed -nE 's|^.*\.((nt\|ttl\|nq\|trig\|rdf(\.xml)?)(\.(gz\|bz2))?)$|\1|p'`
export IN_TYPE="$(echo "$FILE" | sed -nE 's|^.*\.((nt\|ttl\|nq\|trig\|rdf(\.xml)?)(\.(gz\|bz2))?)$|\1|p')"

if [[ "$FILE" =~ ^.*-dcat\..*\.*$ && ! -z "$IN_TYPE" ]]; then
echo "Processing as dcat metadata: $FILE"
Expand Down Expand Up @@ -91,8 +91,8 @@ process-file() {

inotifywait "$WATCH_DIR" --recursive --monitor --format '%w%f\t%e' --event CLOSE_WRITE --event DELETE | \
while read RECORD; do
FILE=`echo "$RECORD" | cut -d$'\t' -f 1`
EVENT=`echo "$RECORD" | cut -d$'\t' -f 2`
FILE="$(echo "$RECORD" | cut -f 1)"
EVENT="$(echo "$RECORD" | cut -f 2)"
process-file "$WORK_DIR" "$FILE" "$EVENT"
done

0 comments on commit ee86bad

Please sign in to comment.