lmit script

git4refactor
bunsenstraat 7 months ago
parent 6a16d5423a
commit cc49cc54cf
  1. 14
      lintpr.sh

@ -0,0 +1,14 @@
#!/bin/bash
# Find all project.json files in subdirectories
find . -type d -name 'node_modules' -prune -o -name '.eslintrc' -print | while read -r file; do
# Extract the directory path of the file
dir=$(dirname "$file")
echo $file
git checkout master -- $file
done
Loading…
Cancel
Save