Skip to content

Commit

Permalink
👷 Add script for updating all lock files
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <ff137@proton.me>
  • Loading branch information
ff137 committed May 9, 2024
1 parent ff0e251 commit 4e4f25f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions update_all_lock_files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

# Find all poetry.lock files in subdirectories
find . -type f -name "poetry.lock" | while read lockfile; do
# Get the directory of the lockfile
dir=$(dirname "$lockfile")

# Change to the directory
echo $dir
cd "$dir"

# Run poetry lock
poetry lock

# Go back to the root directory
cd -

done

0 comments on commit 4e4f25f

Please sign in to comment.