diff --git a/.github/workflows/crowdin-download.curriculum.yml b/.github/workflows/crowdin-download.curriculum.yml index 7bc8648bc2f..187bf438d92 100644 --- a/.github/workflows/crowdin-download.curriculum.yml +++ b/.github/workflows/crowdin-download.curriculum.yml @@ -364,7 +364,7 @@ jobs: # We do not need to run tests because they are run after the PR is created. - name: Overwrite Execute-Brain.md - run: tools/scripts/move-bf.sh + run: sudo tools/scripts/move-bf.sh # Create Commit - name: Commit Changes diff --git a/tools/scripts/move-bf.sh b/tools/scripts/move-bf.sh index c00a6bfb1d6..a65a2bbb3c8 100755 --- a/tools/scripts/move-bf.sh +++ b/tools/scripts/move-bf.sh @@ -9,5 +9,5 @@ destination_dir="curriculum/challenges" # Loop through all directories except _meta and english for dir in $(find "$destination_dir" -mindepth 1 -maxdepth 1 -type d ! -name '_meta' ! -name 'english'); do # Copy the file to each directory - cp "$source_file" "$dir/22-rosetta-code/rosetta-code-challenges/" + cp "./$source_file" "./$dir/22-rosetta-code/rosetta-code-challenges/" done