Skip to content

Commit

Permalink
Fixed copy script
Browse files Browse the repository at this point in the history
  • Loading branch information
david-waltermire committed Oct 1, 2019
1 parent 94454c0 commit 9db290c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ jobs: # a collection of
- install-maven-dependencies
- install-jq
- install-prettyjson
- install-xmllint
- run:
name: Generate OSCAL converters
command: |
Expand Down
3 changes: 1 addition & 2 deletions build/ci-cd/copy-and-convert-content.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ while IFS="|" read path format model converttoformats || [[ -n "$path" ]]; do
file_relative=$(realpath --relative-to="${OSCALDIR}" "$file")
dest="$WORKING_DIR/${file/$OSCALDIR\/src\//}"
dest_dir=${dest%/*} # remove filename
dest_relative=$(realpath --relative-to="${WORKING_DIR}" "$dest")

mkdir -p "$dest_dir"
dest_relative=$(realpath --relative-to="${WORKING_DIR}" "$dest")
result=$(cp "$file" "$dest" 2>&1)
cmd_exitcode=$?
if [ $cmd_exitcode -ne 0 ]; then
Expand Down

0 comments on commit 9db290c

Please sign in to comment.