File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- find ./ -type f \( -name " *.php" -o -name " *.js" -o -name " *.jsx" \) -not \( -path " ./vendor/*" -o -path " ./node_modules/*" \) -exec sed -i -e " s/@unreleased/@since $1 /g" {} \;
3+ # Find files in the directory ./ (root)
4+ # find ./ -type f
5+
6+ # Include files with extensions .php, .js, or .jsx
7+ # \( -name "*.php" -o -name "*.js" -o -name "*.jsx" \)
8+
9+ # Exclude the directories vendor (composer) and node_modules (npm)
10+ # -not \( -path "./vendor/*" -o -path "./node_modules/*" \)
411
12+ # Replace the string @unreleased with the value of the first argument, prefixed with @since
13+ # -exec sed -i -e "s/@unreleased/@since $1/g" {} \;
14+
15+ find ./ -type f \( -name " *.php" -o -name " *.js" -o -name " *.jsx" \) -not \( -path " ./vendor/*" -o -path " ./node_modules/*" \) -exec sed -i -e " s/@unreleased/@since $1 /g" {} \;
You can’t perform that action at this time.
0 commit comments