Skip to content

Commit

Permalink
Merge branch 'restricted_file_installation_improvement' into 296_reci…
Browse files Browse the repository at this point in the history
…pe_parameterisation
  • Loading branch information
jfrost-mo committed Dec 19, 2023
2 parents deb5bb5 + 60fc944 commit ff872eb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cset-workflow/install_restricted_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@ fi
# Don't copy some files, like README.md or top-level hidden files.
rm "${tempdir}/README.md"

cp -rv "${tempdir}"/* .
if [[ -z "$1" ]]
then
target_directory="$PWD"
else
target_directory="$1"
fi

cp -rv "${tempdir}"/* "${target_directory}"

# Clean up
rm -rf "${tempdir}"

0 comments on commit ff872eb

Please sign in to comment.