From 522977ec1ce147999a2ca69963f28d28fa5827e5 Mon Sep 17 00:00:00 2001 From: Naomi Date: Mon, 1 Apr 2024 09:00:42 -0700 Subject: [PATCH] fix: when in doubt, sudo? (#54266) --- .github/workflows/crowdin-download.curriculum.yml | 2 +- tools/scripts/move-bf.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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